original_string: public function getQueryParam($param, $default = null, $filter = null, $filterOptions = null)
      {
          $params = $this->getQueryParams();
          $value = isset($params[$param]) ? $params[$param] : $default;
          
          if (isset($filter) && isset($value)) {
              $value = filter_var($value, $filter, $filterOptions);
          }
          
          return $value;
      }
code: public function getQueryParam($param, $default = null, $filter = null, $filterOptions = null)
      {
          $params = $this->getQueryParams();
          $value = isset($params[$param]) ? $params[$param] : $default;
          
          if (isset($filter) && isset($value)) {
              $value = filter_var($value, $filter, $filterOptions);
          }
          
          return $value;
      }
code_tokens: public function getQueryParam ( $ param , $ default = null , $ filter = null , $ filterOptions = null ) { $ params = $ this -> getQueryParams ( ) ; $ value = isset ( $ params [ $ param ] ) ? $ params [ $ param ] : $ default ; if ( isset ( $ filter ) && isset ( $ value ) ) { $ value = filter_var ( $ value , $ filter , $ filterOptions ) ; } return $ value ; }
docstring: Get a query parameter.
  
  Optionally apply filtering to the value.
  @link http://php.net/manual/en/filter.filters.php
  
  @param array  $param
  @param string $default
  @param int    $filter
  @param mixed  $filterOptions
  @return mixed
docstring_tokens: Get a query parameter .