0

Final Class Yiisoft\Hydrator\Exception\EnumException

InheritanceYiisoft\Hydrator\Exception\EnumException » Yiisoft\Hydrator\Exception\NonInstantiableException » LogicException

Thrown when an enum is attempted to be instantiated.

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( ReflectionClass $reflectionClass )
$reflectionClass ReflectionClass

                public function __construct(ReflectionClass $reflectionClass)
{
    parent::__construct(
        sprintf(
            '"%s" is not instantiable because it is an enum.',
            $reflectionClass->getName(),
        ),
    );
}