Go\Aop\Support\InheritanceClassFilter::matches PHP Метод

matches() публичный Метод

Performs matching of point of code
public matches ( mixed $class, null | mixed $context = null, null | string | object $instance = null, array $arguments = null ) : boolean
$class mixed Specific part of code, can be any Reflection class
$context null | mixed Related context, can be class or namespace
$instance null | string | object Invocation instance or string for static calls
$arguments array Dynamic arguments for method
Результат boolean
    public function matches($class, $context = null, $instance = null, array $arguments = null)
    {
        if (!$class instanceof ReflectionClass) {
            return false;
        }
        return $class->isSubclassOf($this->parentClass) || in_array($this->parentClass, $class->getInterfaceNames());
    }
InheritanceClassFilter