Go\Aop\Pointcut\AnnotationPointcut::matches PHP Méthode

matches() public méthode

public matches ( ReflectionClas\ReflectionClass | ReflectionMetho\ReflectionMethod | ReflectionPropert\ReflectionProperty $point, $context = null, $instance = null, array $arguments = null )
$point ReflectionClas\ReflectionClass | ReflectionMetho\ReflectionMethod | ReflectionPropert\ReflectionProperty {@inheritdoc}
$arguments array
    public function matches($point, $context = null, $instance = null, array $arguments = null)
    {
        $expectedClass = $this->expectedClass;
        if (!$point instanceof $expectedClass) {
            return false;
        }
        $annotation = $this->annotationReader->{$this->annotationMethod}($point, $this->annotationName);
        return (bool) $annotation;
    }