public function getMethod($index) { return isset($this->methods[$index]) === false ? null : $this->methods[$index]; }