public function setSecure($key, $data = null, $expires = 0, $path = null, $domain = null)
    {
        //argment test
        Argument::i()
            //argument 1 must be a string
            ->test(1, 'string')
            //argument 2 must be a string,numeric or null
            ->test(2, 'string', 'numeric', 'null')
            //argument 3 must be a integer
            ->test(3, 'int')
            //argument 4 must be a string or null
            ->test(4, 'string', 'null')
            //argument 5 must be a string or null
            ->test(5, 'string', 'null');

        return $this->set($key, $data, $expires, $path, $domain, true, false);
    }
public function setSecure($key, $data = null, $expires = 0, $path = null, $domain = null)
    {
        //argment test
        Argument::i()
            //argument 1 must be a string
            ->test(1, 'string')
            //argument 2 must be a string,numeric or null
            ->test(2, 'string', 'numeric', 'null')
            //argument 3 must be a integer
            ->test(3, 'int')
            //argument 4 must be a string or null
            ->test(4, 'string', 'null')
            //argument 5 must be a string or null
            ->test(5, 'string', 'null');

        return $this->set($key, $data, $expires, $path, $domain, true, false);
    }
public function setSecure ( $ key , $ data = null , $ expires = 0 , $ path = null , $ domain = null ) { //argment test Argument :: i ( ) //argument 1 must be a string -> test ( 1 , 'string' ) //argument 2 must be a string,numeric or null -> test ( 2 , 'string' , 'numeric' , 'null' ) //argument 3 must be a integer -> test ( 3 , 'int' ) //argument 4 must be a string or null -> test ( 4 , 'string' , 'null' ) //argument 5 must be a string or null -> test ( 5 , 'string' , 'null' ) ; return $ this -> set ( $ key , $ data , $ expires , $ path , $ domain , true , false ) ; }
Sets a secure cookie.

@param *string     $key      Cookie name
@param scalar      $data     The data
@param int         $expires  Expiration
@param string      $path     Path to make the cookie available
@param string|null $domain   The domain

@return Eden\Cookie\Index
Sets a secure cookie .