/** * Set Title * * @param Title|string $title * * @throws InvalidTypeException * * @return self */ public function setTitle($title) { if ($title instanceof Title) { $this->title = $title; } else { $this->title->set($title); } return $this->updateTitleDependencies(); }