src/Viserio/Component/Cookie/RequestCookies.php
protected static function oneFromCookiePair(string $string): Cookie
    {
        [$name, $value] = self::splitCookiePair($string);

        $cookie = new Cookie($name);

        if (null !== $value) {
            $cookie = $cookie->withValue($value);
        }

        return $cookie;
    }
protected static function oneFromCookiePair(string $string): Cookie
    {
        [$name, $value] = self::splitCookiePair($string);

        $cookie = new Cookie($name);

        if (null !== $value) {
            $cookie = $cookie->withValue($value);
        }

        return $cookie;
    }
Create one Cookie from a cookie key/value header value string.

@param string $string

@return \Viserio\Component\Cookie\Cookie