original_string: public function getMethod($routeId, $version, $method)
      {
          if ($version == '*' || empty($version)) {
              $version = $this->methodTable->getLatestVersion($routeId);
          } else {
              $version = $this->methodTable->getVersion($routeId, $version);
          }
  
          if (empty($version)) {
              throw new StatusCode\UnsupportedMediaTypeException('Version does not exist');
          }
  
          return $this->methodTable->getMethod($routeId, $version, $method);
      }
code: public function getMethod($routeId, $version, $method)
      {
          if ($version == '*' || empty($version)) {
              $version = $this->methodTable->getLatestVersion($routeId);
          } else {
              $version = $this->methodTable->getVersion($routeId, $version);
          }
  
          if (empty($version)) {
              throw new StatusCode\UnsupportedMediaTypeException('Version does not exist');
          }
  
          return $this->methodTable->getMethod($routeId, $version, $method);
      }
code_tokens: public function getMethod ( $ routeId , $ version , $ method ) { if ( $ version == '*' || empty ( $ version ) ) { $ version = $ this -> methodTable -> getLatestVersion ( $ routeId ) ; } else { $ version = $ this -> methodTable -> getVersion ( $ routeId , $ version ) ; } if ( empty ( $ version ) ) { throw new StatusCode \ UnsupportedMediaTypeException ( 'Version does not exist' ) ; } return $ this -> methodTable -> getMethod ( $ routeId , $ version , $ method ) ; }
docstring: Returns the method configuration for the provide route, version and
  request method
  
  @param integer $routeId
  @param string $version
  @param string $method
  @return array
docstring_tokens: Returns the method configuration for the provide route version and request method