AppserverIo\Appserver\ServletEngine\Http\Response::getCookie PHP Méthode

getCookie() public méthode

Returns the cookie with the a cookie
public getCookie ( string $cookieName ) : mixed
$cookieName string Name of the cookie to be checked
Résultat mixed The cookie instance or an array of cookie instances
    public function getCookie($cookieName)
    {
        if ($this->hasCookie($cookieName) === false) {
            throw new HttpException("Cookie '{$cookieName}' not found");
        }
        return $this->cookies[$cookieName];
    }