public function addPath($name, $argument = null) { $this->path[] = $name; if ($argument !== null) { $this->path[] = $argument; } return $this; }