public function setCurrentRoute($currentRoute) { if (is_string($currentRoute)) { $this->currentRoute = $currentRoute; } return $this; }