Classes/Pattern/Presentation/Component/ComponentSpecification.php
/**
     * @param \ReflectionClass<object> $reflectionClass
     * @return boolean
     */
@param \ReflectionClass $reflectionClass
@return boolean
@param \ ReflectionClass $reflectionClass @return boolean
public static function isSatisfiedByReflectionClass(\ReflectionClass $reflectionClass): bool
    {
        if ($reflectionClass->isSubclassOf(self::COMPONENT_MODEL_BASE_CLASS)) {
            return true;
        }
        if ($reflectionClass->implementsInterface(self::COMPONENT_MODEL_INTERFACE)) {
            return true;
        }
        $companionInterfaceName = $reflectionClass->getName() . 'Interface';
        if (interface_exists($companionInterfaceName) && $reflectionClass->implementsInterface($companionInterfaceName)) {
            return true;
        }
        return false;
    }
public static function isSatisfiedByReflectionClass ( \ ReflectionClass $ reflectionClass ) : bool { if ( $ reflectionClass -> isSubclassOf ( self :: COMPONENT_MODEL_BASE_CLASS ) ) { return true ; } if ( $ reflectionClass -> implementsInterface ( self :: COMPONENT_MODEL_INTERFACE ) ) { return true ; } $ companionInterfaceName = $ reflectionClass -> getName ( ) . 'Interface' ; if ( interface_exists ( $ companionInterfaceName ) && $ reflectionClass -> implementsInterface ( $ companionInterfaceName ) ) { return true ; } return false ; }
@param \ReflectionClass<object> $reflectionClass
 @return boolean
@param \ ReflectionClass<object > $reflectionClass @return boolean