/** * @return array|null */ public function fetchCurrentUser() { if (!$this->userLoggedIn()) { return null; } $username = SessionStorage::getValue('username'); return $this->_db->fetchOne('users', ['username' => $username]); }