public function update($name) { if ($this->name === $name) { return $this; } return new self($name); }