/** * @inheritDoc */ 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; } }