db->select("utente", ["username" => $username]); var_dump($userObject); if(!$userObject){ return false; } return "token"; } public function loginWithToken(string $token){ } }