src/Valkyrja/Http/Cookies.php
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