src/Generator/CodeGenerator.php
private function validateEnumEntity(string $entity_class): void
    {
        if (false === \in_array(EnumeratorCompatibleEntityInterface::class, class_implements($entity_class))) {
            throw new \LogicException(sprintf(
                'The entity "%s" must implement "%s" in order to use it with enumerator accessor classes.',
                $entity_class,
                EnumeratorCompatibleEntityInterface::class
            ));
        }
    }
private function validateEnumEntity(string $entity_class): void
    {
        if (false === \in_array(EnumeratorCompatibleEntityInterface::class, class_implements($entity_class))) {
            throw new \LogicException(sprintf(
                'The entity "%s" must implement "%s" in order to use it with enumerator accessor classes.',
                $entity_class,
                EnumeratorCompatibleEntityInterface::class
            ));
        }
    }
private function validateEnumEntity ( string $ entity_class ) : void { if ( false === \ in_array ( EnumeratorCompatibleEntityInterface :: class , class_implements ( $ entity_class ) ) ) { throw new \ LogicException ( sprintf ( 'The entity "%s" must implement "%s" in order to use it with enumerator accessor classes.' , $ entity_class , EnumeratorCompatibleEntityInterface :: class ) ) ; } }
Ensures the entity class complies to the "standard" for holding parameters.

@param string $entity_class
Ensures the entity class complies to the standard for holding parameters .