public function defineCookie() : bool
    {
        $timeStamp = (($this->expires === null) ? null : $this->expires->getTimestamp());
        return setcookie($this->name, $this->value, $timeStamp, $this->path, $this->domain, $this->secure, $this->httpOnly);
    }