Файл: vendor/intervention/image/src/Drivers/SpecializableDecoder.php
Строк: 57
<?php
declare(strict_types=1);
namespace InterventionImageDrivers;
use InterventionImageExceptionsDriverException;
use InterventionImageInterfacesColorInterface;
use InterventionImageInterfacesDecoderInterface;
use InterventionImageInterfacesImageInterface;
use InterventionImageInterfacesSpecializableInterface;
use InterventionImageTraitsCanBeDriverSpecialized;
abstract class SpecializableDecoder extends AbstractDecoder implements DecoderInterface, SpecializableInterface
{
use CanBeDriverSpecialized;
/**
* {@inheritdoc}
*
* @see DecoderInterface::supports()
*
* @throws DriverException
*/
public function supports(mixed $input): bool
{
throw new DriverException('Decoder ' . $this::class . ' must be specialized by the driver first');
}
/**
* {@inheritdoc}
*
* @see DecoderInterface::decode()
*
* @throws DriverException
*/
public function decode(mixed $input): ImageInterface|ColorInterface
{
throw new DriverException('Decoder ' . $this::class . ' must be specialized by the driver first');
}
}