public function matches(Kdyby\Aop\Pointcut\Method $method) { if ($this->visibility !== NULL && $this->visibility !== $method->getVisibility()) { return FALSE; } return preg_match('~^' . $this->method . '\\z~i', $method->getName()) > 0; }
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; }