realm = $realm; $this->request = $request; $this->response = $response; } /** * This method sends the needed HTTP header and status code (401) to force * the user to login. */ abstract public function requireLogin(); /** * Returns the HTTP realm. */ public function getRealm(): string { return $this->realm; } }