public function matches(Kdyby\Aop\Pointcut\Method $method) { foreach ($method->getAnnotations($this->reader) as $annotation) { if (!$annotation instanceof $this->annotationClass) { continue; } return TRUE; } return FALSE; }