public function method($method) { $args = func_get_args(); array_shift($args); if (!isset($this->methods[$method])) { $this->methods[$method] = []; } $this->methods[$method][] = $args; return $this; }