public function __construct(string $name, $value = '', int $expires = 0, string $path = null, string $domain = null, bool $secure = false, bool $httpOnly = false)
{
parent::__construct($name, $value);
$this->expires = $expires;
$this->path = $this->filterValue($path);
$this->domain = $this->filterValue($domain);
$this->secure = $secure;
$this->httpOnly = $httpOnly;
}