1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-12 00:43:59 +02:00

Merge remote-tracking branch 'upstream/develop' into feat/phpcs

This commit is contained in:
Sibin Grasic
2024-01-17 22:42:04 +01:00

View File

@@ -16,6 +16,11 @@ abstract class DriverSpecialized implements SpecializedInterface
{ {
} }
/**
* {@inheritdoc}
*
* @see SpecializedInterface::buildSpecialized()
*/
public static function buildSpecialized(object $generic, DriverInterface $driver): SpecializedInterface public static function buildSpecialized(object $generic, DriverInterface $driver): SpecializedInterface
{ {
$specialized = new static(); $specialized = new static();
@@ -25,18 +30,28 @@ abstract class DriverSpecialized implements SpecializedInterface
return $specialized; return $specialized;
} }
/**
* {@inheritdoc}
*
* @see SpecializedInterface::driver()
*/
public function driver(): DriverInterface public function driver(): DriverInterface
{ {
return $this->driver; return $this->driver;
} }
/**
* {@inheritdoc}
*
* @see SpecializedInterface::generic()
*/
public function generic(): object public function generic(): object
{ {
return $this->generic; return $this->generic;
} }
/** /**
* Magic method to read attributes of underlying modifier * Magic method to read attributes of underlying generic object
* *
* @param string $name * @param string $name
* @return mixed * @return mixed
@@ -47,7 +62,7 @@ abstract class DriverSpecialized implements SpecializedInterface
} }
/** /**
* Magic method to call methods of underlying modifier * Magic method to call methods of underlying generic object
* *
* @param string $name * @param string $name
* @param array $arguments * @param array $arguments