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;
    }
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;
    }
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 ; }
Save the cookie in the HTTP response header using the default PHP
functions setcookie or setrawcookie depending on the need to save the
cookie value without url encoding.

@see http://php.net/manual/en/function.setcookie.php
@see http://php.net/manual/en/function.setrawcookie.php
Save the cookie in the HTTP response header using the default PHP functions setcookie or setrawcookie depending on the need to save the cookie value without url encoding .