protected function isItemGreedy(array $info, \ReflectionClass $reflector, $item): bool
    {
        $base = new \ReflectionClass($info['class']);

        if ($reflector->isSubclassOf($base->getName()))
            return true;

        if (!$base->isSubclassOf($reflector->getName()))
            throw new \LogicException('Class ' . var_export($reflector->getName(), true) . ' has no direct relation with class ' . var_export($base->getName(), true) . '. Use @easy-extend-base to create new branch.');

        return false;
    }
protected function isItemGreedy(array $info, \ReflectionClass $reflector, $item): bool
    {
        $base = new \ReflectionClass($info['class']);

        if ($reflector->isSubclassOf($base->getName()))
            return true;

        if (!$base->isSubclassOf($reflector->getName()))
            throw new \LogicException('Class ' . var_export($reflector->getName(), true) . ' has no direct relation with class ' . var_export($base->getName(), true) . '. Use @easy-extend-base to create new branch.');

        return false;
    }
protected function isItemGreedy ( array $ info , \ ReflectionClass $ reflector , $ item ) : bool { $ base = new \ ReflectionClass ( $ info [ 'class' ] ) ; if ( $ reflector -> isSubclassOf ( $ base -> getName ( ) ) ) return true ; if ( ! $ base -> isSubclassOf ( $ reflector -> getName ( ) ) ) throw new \ LogicException ( 'Class ' . var_export ( $ reflector -> getName ( ) , true ) . ' has no direct relation with class ' . var_export ( $ base -> getName ( ) , true ) . '. Use @easy-extend-base to create new branch.' ) ; return false ; }
Returns true if item is greedy

@param array            $info
@param \ReflectionClass $reflector
@param object           $item

@return bool
Returns true if item is greedy