Go\Aop\Pointcut\OrPointcut::matchPart PHP Method

matchPart() protected method

protected matchPart ( Go\Aop\Pointcut $pointcut, $point, $context = null, $instance = null, array $arguments = null )
$pointcut Go\Aop\Pointcut
$arguments array
    protected function matchPart(Pointcut $pointcut, $point, $context = null, $instance = null, array $arguments = null)
    {
        $pointcutKind = $pointcut->getKind();
        // We need to recheck filter kind one more time, because of OR syntax
        switch (true) {
            case $point instanceof \ReflectionMethod && $pointcutKind & PointFilter::KIND_METHOD:
            case $point instanceof \ReflectionProperty && $pointcutKind & PointFilter::KIND_PROPERTY:
            case $point instanceof \ReflectionClass && $pointcutKind & PointFilter::KIND_CLASS:
                return parent::matchPart($pointcut, $point, $context, $instance, $arguments);
            default:
                return false;
        }
    }