public function toString(bool $urldecoded = true) : string
    {
        $str = $this->name . "=" . $this->getValue($urldecoded) . ";";

        if ($this->expires !== null) {
            $str .= " Expires=" . $this->getStrExpires() . ";";
        }
        if ($this->domain !== null) {
            $str .= " Domain=" . $this->domain . ";";
        }
        if ($this->path !== null) {
            $str .= " Path=" . $this->path . ";";
        }
        if ($this->secure !== null) {
            $str .= " Secure;";
        }
        if ($this->httpOnly !== null) {
            $str .= " HttpOnly;";
        }

        return $str;
    }
public function toString(bool $urldecoded = true) : string
    {
        $str = $this->name . "=" . $this->getValue($urldecoded) . ";";

        if ($this->expires !== null) {
            $str .= " Expires=" . $this->getStrExpires() . ";";
        }
        if ($this->domain !== null) {
            $str .= " Domain=" . $this->domain . ";";
        }
        if ($this->path !== null) {
            $str .= " Path=" . $this->path . ";";
        }
        if ($this->secure !== null) {
            $str .= " Secure;";
        }
        if ($this->httpOnly !== null) {
            $str .= " HttpOnly;";
        }

        return $str;
    }
public function toString ( bool $ urldecoded = true ) : string { $ str = $ this -> name . "=" . $ this -> getValue ( $ urldecoded ) . ";" ; if ( $ this -> expires !== null ) { $ str .= " Expires=" . $ this -> getStrExpires ( ) . ";" ; } if ( $ this -> domain !== null ) { $ str .= " Domain=" . $ this -> domain . ";" ; } if ( $ this -> path !== null ) { $ str .= " Path=" . $ this -> path . ";" ; } if ( $ this -> secure !== null ) { $ str .= " Secure;" ; } if ( $ this -> httpOnly !== null ) { $ str .= " HttpOnly;" ; } return $ str ; }
Devolve uma string com o valor completo do Cookie.

<pre>
name=value; [Expires=string;] [Domain=string;] [Path=string;] [Secure;] [HttpOnly;]
</pre>

@param       bool $urldecoded
Indica se o valor retornado
deve ser convertido para o formato
"natural", sem "percent-encode".

@return      string
Devolve uma string com o valor completo do Cookie .