/** * @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; }
/** * @return array|bool */ public function listAcceptedTypes() { return $this->filter->listAcceptedTypes(); }