src/Viserio/Component/Cookie/ResponseCookies.php
public static function fromResponse(ResponseInterface $response): self
    {
        return new static(\array_map(static function ($setCookieString) {
            return self::fromStringCookie($setCookieString);
        }, $response->getHeader('set-cookie')));
    }
public static function fromResponse(ResponseInterface $response): self
    {
        return new static(\array_map(static function ($setCookieString) {
            return self::fromStringCookie($setCookieString);
        }, $response->getHeader('set-cookie')));
    }
Creates a Cookie instance from a Set-Cookie header value.

@param \Psr\Http\Message\ResponseInterface $response

@throws \Viserio\Component\Contract\Cookie\Exception\InvalidArgumentException

@return self