/** * @param $title * @param null $locale */ public function setTitle($title, $locale = null) { if ($locale === null) { $locale = $this->customerFamily->getLocale(); } $this->customerFamily->setLocale($locale); $this->customerFamily->setTitle($title); }