src/main/php/response/WebResponse.php
public function addCookie(Cookie $cookie): Response
    {
        $this->cookies[$cookie->name()] = $cookie;
        return $this;
    }
public function addCookie(Cookie $cookie): Response
    {
        $this->cookies[$cookie->name()] = $cookie;
        return $this;
    }
public function addCookie ( Cookie $ cookie ) : Response { $ this -> cookies [ $ cookie -> name ( ) ] = $ cookie ; return $ this ; }
add a cookie to the response

@param   \stubbles\webapp\response\Cookie  $cookie  the cookie to set
@return  \stubbles\webapp\Response
add a cookie to the response