src/mako/http/response/Cookies.php
public function add(string $name, string $value, int $ttl = 0, array $options = [], bool $raw = false): Cookies
	{
		$expires = ($ttl === 0) ? 0 : (time() + $ttl);

		$this->cookies[$name] =
		[
			'raw'     => $raw,
			'name'    => $name,
			'value'   => $value,
			'options' => ['expires' => $expires] + $options + $this->defaults,
		];

		return $this;
	}
public function add(string $name, string $value, int $ttl = 0, array $options = [], bool $raw = false): Cookies
	{
		$expires = ($ttl === 0) ? 0 : (time() + $ttl);

		$this->cookies[$name] =
		[
			'raw'     => $raw,
			'name'    => $name,
			'value'   => $value,
			'options' => ['expires' => $expires] + $options + $this->defaults,
		];

		return $this;
	}
public function add ( string $ name , string $ value , int $ ttl = 0 , array $ options = [ ] , bool $ raw = false ) : Cookies { $ expires = ( $ ttl === 0 ) ? 0 : ( time ( ) + $ ttl ) ; $ this -> cookies [ $ name ] = [ 'raw' => $ raw , 'name' => $ name , 'value' => $ value , 'options' => [ 'expires' => $ expires ] + $ options + $ this -> defaults , ] ; return $ this ; }
Adds a unsigned cookie.

@param  string                      $name    Cookie name
@param  string                      $value   Cookie value
@param  int                         $ttl     Time to live - if omitted or set to 0 the cookie will expire when the browser closes
@param  array                       $options Cookie options
@param  bool                        $raw     Set the cookie without urlencoding the value?
@return \mako\http\response\Cookies
Adds a unsigned cookie .