public function set($type = null, $key = null, $value = null)
    {
        if (isset($type)) {
            $this->request[$type]["$key"] = $value;
        } else {
            $this->request = array(
                'get' => $_GET,
                'post' => $_POST,
                'files' => $_FILES,
                'cookie' => $_COOKIE
            );
        }

        return $this;
    }
public function set($type = null, $key = null, $value = null)
    {
        if (isset($type)) {
            $this->request[$type]["$key"] = $value;
        } else {
            $this->request = array(
                'get' => $_GET,
                'post' => $_POST,
                'files' => $_FILES,
                'cookie' => $_COOKIE
            );
        }

        return $this;
    }
public function set ( $ type = null , $ key = null , $ value = null ) { if ( isset ( $ type ) ) { $ this -> request [ $ type ] [ "$key" ] = $ value ; } else { $ this -> request = array ( 'get' => $ _GET , 'post' => $ _POST , 'files' => $ _FILES , 'cookie' => $ _COOKIE ) ; } return $ this ; }
Sets  a request parameter
@param null|string $type
@param null|string $key
@param mixed $value
@return $this
Sets a request parameter