original_string: public function setHttpVersion($version)
      {
          // Version validation pattern
          $pattern = '~^1\.[01]$~';
  
          if (! preg_match($pattern, $version))
              return false;
  
          $this->httpVersion = $version;
          return true;
      }
code: public function setHttpVersion($version)
      {
          // Version validation pattern
          $pattern = '~^1\.[01]$~';
  
          if (! preg_match($pattern, $version))
              return false;
  
          $this->httpVersion = $version;
          return true;
      }
code_tokens: public function setHttpVersion ( $ version ) { // Version validation pattern $ pattern = '~^1\.[01]$~' ; if ( ! preg_match ( $ pattern , $ version ) ) return false ; $ this -> httpVersion = $ version ; return true ; }
docstring: Set the HTTP Protocol version of the Message
  
  @param string $version
  @return bool  Returns TRUE on success, or FALSE if supplied version is out of range (1.0/1.1)
docstring_tokens: Set the HTTP Protocol version of the Message