public static function fromResponse(ResponseInterface $response) : SetCookies
    {
        return new static(array_map(function (string $setCookieString) : SetCookie {
            return SetCookie::fromSetCookieString($setCookieString);
        }, $response->getHeader(static::SET_COOKIE_HEADER)));
    }
public static function fromResponse(ResponseInterface $response) : SetCookies
    {
        return new static(array_map(function (string $setCookieString) : SetCookie {
            return SetCookie::fromSetCookieString($setCookieString);
        }, $response->getHeader(static::SET_COOKIE_HEADER)));
    }
public static function fromResponse ( ResponseInterface $ response ) : SetCookies { return new static ( array_map ( function ( string $ setCookieString ) : SetCookie { return SetCookie :: fromSetCookieString ( $ setCookieString ) ; } , $ response -> getHeader ( static :: SET_COOKIE_HEADER ) ) ) ; }
Create SetCookies from a Response.
Create SetCookies from a Response .