Neos\Flow\Aop\Pointcut\PointcutClassTypeFilter::matches PHP Method

matches() public method

Checks if the specified class matches with the class type filter
public matches ( string $className, string $methodName, string $methodDeclaringClassName, mixed $pointcutQueryIdentifier ) : boolean
$className string Name of the class to check against
$methodName string Name of the method - not used here
$methodDeclaringClassName string Name of the class the method was originally declared in - not used here
$pointcutQueryIdentifier mixed Some identifier for this query - must at least differ from a previous identifier. Used for circular reference detection.
return boolean TRUE if the class matches, otherwise FALSE
    public function matches($className, $methodName, $methodDeclaringClassName, $pointcutQueryIdentifier)
    {
        if ($this->isInterface === true) {
            return array_search($this->interfaceOrClassName, class_implements($className)) !== false;
        } else {
            return $className === $this->interfaceOrClassName || is_subclass_of($className, $this->interfaceOrClassName);
        }
    }