Файл: vendor/intervention/image/src/Decoders/ImageObjectDecoder.php
Строк: 38
<?php
declare(strict_types=1);
namespace InterventionImageDecoders;
use InterventionImageDriversAbstractDecoder;
use InterventionImageInterfacesImageInterface;
use InterventionImageInterfacesColorInterface;
class ImageObjectDecoder extends AbstractDecoder
{
/**
* {@inheritdoc}
*
* @see DecoderInterface::supports()
*/
public function supports(mixed $input): bool
{
return $input instanceof ImageInterface;
}
/**
* {@inheritdoc}
*
* @see DecoderInterface::decode()
*/
public function decode(mixed $input): ImageInterface|ColorInterface
{
return $input;
}
}