src/Leevel/Http/Response.php
public function setCookie(string $name, string $value = '', array $option = []): IResponse
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        $this->headers->setCookie($name, $value, $option);

        return $this;
    }
public function setCookie(string $name, string $value = '', array $option = []): IResponse
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        $this->headers->setCookie($name, $value, $option);

        return $this;
    }
设置 COOKIE.

@param string $name
@param string $value
@param array  $option

@return $this