session = $session; $this->loggedIn = $this->session->get('loggedIn'); $this->username = $this->session->get('username'); } public function login(string $username, string $password): bool { if ($username === 'William' && $password === 'William') { $this->session->set('loggedIn', TRUE); $this->session->set('username', 'William'); return TRUE; } return FALSE; } }