public function addMethod($name, $body, $arguments = '') { $this->methods[$name] = ['body' => trim($body), 'arguments' => $arguments]; }