public function setNavigations($navigations) { if (!is_array($navigations)) { $navigations = array($navigations); } $this->navigations = $navigations; return $this; }