/** * Model constructor. * @param $title */ public function __construct($title) { $this->title = $title; $this->isAuthenticated = Authentication::isAuthenticated(); if ($this->isAuthenticated) { $this->authenticatedUserEntity = Authentication::getUserEntity(); } $this->pageMenu = PageMenu::getPageMenu(); }