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

@param string $cookieName Name of the cookie to be checked

@return mixed The cookie instance or an array of cookie instances
@throws \AppserverIo\Http\HttpException Is thrown if the requested header is not available
Returns the cookie with the a cookie