original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Sets  a request parameter
  @param null|string $type
  @param null|string $key
  @param mixed $value
  @return $this
docstring_tokens: Sets a request parameter