public static function listFromCookieString(string $string) : array
    {
        $cookies = StringUtil::splitOnAttributeDelimiter($string);

        return array_map(function ($cookiePair) {
            return static::oneFromCookiePair($cookiePair);
        }, $cookies);
    }
public static function listFromCookieString(string $string) : array
    {
        $cookies = StringUtil::splitOnAttributeDelimiter($string);

        return array_map(function ($cookiePair) {
            return static::oneFromCookiePair($cookiePair);
        }, $cookies);
    }
public static function listFromCookieString ( string $ string ) : array { $ cookies = StringUtil :: splitOnAttributeDelimiter ( $ string ) ; return array_map ( function ( $ cookiePair ) { return static :: oneFromCookiePair ( $ cookiePair ) ; } , $ cookies ) ; }
Create a list of Cookies from a Cookie header value string.

@return Cookie[]
Create a list of Cookies from a Cookie header value string .