public function set(Cookie $cookie): self
    {
        $this->cookies[$cookie->getDomain()][$cookie->getPath()][$cookie->getName()] = $cookie;

        return $this;
    }
public function set(Cookie $cookie): self
    {
        $this->cookies[$cookie->getDomain()][$cookie->getPath()][$cookie->getName()] = $cookie;

        return $this;
    }
public function set ( Cookie $ cookie ) : self { $ this -> cookies [ $ cookie -> getDomain ( ) ] [ $ cookie -> getPath ( ) ] [ $ cookie -> getName ( ) ] = $ cookie ; return $ this ; }
Set a response cookie.

@param Cookie $cookie The cookie object

@return \Valkyrja\Http\Cookies
Set a response cookie .