AppserverIo\Appserver\ServletEngine\Http\Response::getCookie PHP Метод

getCookie() публичный Метод

Returns the cookie with the a cookie
public getCookie ( string $cookieName ) : mixed
$cookieName string Name of the cookie to be checked
Результат 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];
    }