public function send()
    {
        $args = [
            $this->name,
            $this->value,
            time() + $this->lifetime,
            $this->path,
            $this->domain,
            $this->secure,
            $this->httpOnly
        ];
        $function = (!$this->urlEncodedValue) ? 'setrawcookie' : 'setcookie';
        call_user_func_array($function, $args);
        $_COOKIE[$this->name] = $this->value;
    }