original_string: public function param($paramname, $newvalue = '') {
          if (func_num_args() > 1) {
              // Set new value.
              $this->params(array($paramname => $newvalue));
          }
          if (isset($this->params[$paramname])) {
              return $this->params[$paramname];
          } else {
              return null;
          }
      }
code: public function param($paramname, $newvalue = '') {
          if (func_num_args() > 1) {
              // Set new value.
              $this->params(array($paramname => $newvalue));
          }
          if (isset($this->params[$paramname])) {
              return $this->params[$paramname];
          } else {
              return null;
          }
      }
code_tokens: public function param ( $ paramname , $ newvalue = '' ) { if ( func_num_args ( ) > 1 ) { // Set new value. $ this -> params ( array ( $ paramname => $ newvalue ) ) ; } if ( isset ( $ this -> params [ $ paramname ] ) ) { return $ this -> params [ $ paramname ] ; } else { return null ; } }
docstring: Add a param to the params for this url.
  
  The added param overrides existing one if they have the same name.
  
  @param string $paramname name
  @param string $newvalue Param value. If new value specified current value is overriden or parameter is added
  @return mixed string parameter value, null if parameter does not exist
docstring_tokens: Add a param to the params for this url .