public function getMethod($method) { $m = $method instanceof MethodGenerator ? $method->getName() : $method; return isset($this->methods[$m]) ? $this->methods[$m] : null; }