public function matchMethod($method) { return count(array_intersect(array($method, '*'), $this->methods)) > 0; }