/** * @param Filter $rule * @return array|Method[] */ public function match(Filter $rule) { $matching = []; foreach ($this->getOpenMethods() as $method) { if ($rule->matches($method)) { $matching[] = $method; } } return $matching; }
public function matches(Kdyby\Aop\Pointcut\Method $method) { return $this->filter->matches($method); }