public function getCookie($cookieName) { if ($this->hasCookie($cookieName) === false) { throw new HttpException("Cookie '{$cookieName}' not found"); } return $this->cookies[$cookieName]; }