Aerys\Response::setCookie PHP Method

setCookie() public method

Provides an easy API to set cookie headers Those who prefer using addHeader() may do so.
public setCookie ( string $name, string $value, array $flags = [] ) : aerys\Response
$name string
$value string
$flags array Shall be an array of key => value pairs and/or unkeyed values as per https://tools.ietf.org/html/rfc6265#section-5.2.1
return aerys\Response
    public function setCookie(string $name, string $value, array $flags = []) : Response;