userDao = $userDao; } public function getById($userId) { return $this->userDao->getById($userId); } public function getByName($userName) { return $this->userDao->getByName($userName); } public function save($user) { return $this->userDao->save($user); } public function getAnonymousUser() { $user = new \Szurubooru\Entities\User(); $user->name = 'Anonymous user'; $user->accessRank = \Szurubooru\Entities\User::ACCESS_RANK_ANONYMOUS; } }