public function setCookie(RequestCookie $cookie)
    {
        $this->cookies[$cookie->getName()] = $cookie;
        $this->setHeadersFromCookies();
    }
public function setCookie(RequestCookie $cookie)
    {
        $this->cookies[$cookie->getName()] = $cookie;
        $this->setHeadersFromCookies();
    }
public function setCookie ( RequestCookie $ cookie ) { $ this -> cookies [ $ cookie -> getName ( ) ] = $ cookie ; $ this -> setHeadersFromCookies ( ) ; }
Adds a cookie to the request.

@param RequestCookie $cookie
Adds a cookie to the request .