src/Http/Cookie/Jar.php
protected static function _line($name, $cookie)
    {
        if (!$cookie->isValid()) {
            throw new RuntimeException("Invalid cookie `'{$name}'`.");
        }
        $domain =  $cookie->domain();

        $parts = [
            $cookie->httponly() ? '#HttpOnly_' . $domain : $domain,
            $domain === '.' ? 'TRUE' : 'FALSE',
            $cookie->path() ?: '/',
            $cookie->secure() ? 'TRUE' : 'FALSE',
            (string) $cookie->expires(),
            $cookie->name(),
            $cookie->value()
        ];
        return join("\t", $parts);
    }
protected static function _line($name, $cookie)
    {
        if (!$cookie->isValid()) {
            throw new RuntimeException("Invalid cookie `'{$name}'`.");
        }
        $domain =  $cookie->domain();

        $parts = [
            $cookie->httponly() ? '#HttpOnly_' . $domain : $domain,
            $domain === '.' ? 'TRUE' : 'FALSE',
            $cookie->path() ?: '/',
            $cookie->secure() ? 'TRUE' : 'FALSE',
            (string) $cookie->expires(),
            $cookie->name(),
            $cookie->value()
        ];
        return join("\t", $parts);
    }
protected static function _line ( $ name , $ cookie ) { if ( ! $ cookie -> isValid ( ) ) { throw new RuntimeException ( "Invalid cookie `'{$name}'`." ) ; } $ domain = $ cookie -> domain ( ) ; $ parts = [ $ cookie -> httponly ( ) ? '#HttpOnly_' . $ domain : $ domain , $ domain === '.' ? 'TRUE' : 'FALSE' , $ cookie -> path ( ) ? : '/' , $ cookie -> secure ( ) ? 'TRUE' : 'FALSE' , ( string ) $ cookie -> expires ( ) , $ cookie -> name ( ) , $ cookie -> value ( ) ] ; return join ( "\t" , $ parts ) ; }
Creates a cookie JAR line from a name and a SetCookie value.

@param  string The cookie name.
@param  string The cookie instance value.
@return string
Creates a cookie JAR line from a name and a SetCookie value .