/** * @param Locale $locale * * @return $this */ public function setLocale($locale) { if (!$locale instanceof Locale) { $locale = Locale::objectify($locale, array($this)); } $this->locale = $locale; return $this; }