Файл: vendor/intervention/image/src/Drivers/SpecializableAnalyzer.php
Строк: 48
<?php
declare(strict_types=1);
namespace InterventionImageDrivers;
use InterventionImageExceptionsLogicException;
use InterventionImageInterfacesAnalyzerInterface;
use InterventionImageInterfacesImageInterface;
use InterventionImageInterfacesSpecializedInterface;
abstract class SpecializableAnalyzer extends Specializable implements AnalyzerInterface
{
/**
* {@inheritdoc}
*
* @see AnalyzerInterface::analyze()
*
* @throws LogicException
*/
public function analyze(ImageInterface $image): mixed
{
if ($this instanceof SpecializedInterface) {
throw new LogicException(
"Specialized class '" . static::class . "' must override analyze()",
);
}
return $image->analyze($this);
}
}