Exemplo n.º 1
0
 /**
  * @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;
 }
Exemplo n.º 2
0
 /**
  * @return array|bool
  */
 public function listAcceptedTypes()
 {
     return $this->filter->listAcceptedTypes();
 }