original_string: public static function getVersions($module = null) {
      $req = new GetVersionsRequest();
      $resp = new GetVersionsResponse();
  
      if ($module !== null) {
        if (!is_string($module)) {
          throw new \InvalidArgumentException(
              '$module must be a string. Actual type: ' . gettype($module));
        }
        $req->setModule($module);
      }
  
      try {
        ApiProxy::makeSyncCall('modules', 'GetVersions', $req, $resp);
      } catch (ApplicationError $e) {
        throw errorCodeToException($e->getApplicationError());
      }
      return $resp->getVersionList();
    }
code: public static function getVersions($module = null) {
      $req = new GetVersionsRequest();
      $resp = new GetVersionsResponse();
  
      if ($module !== null) {
        if (!is_string($module)) {
          throw new \InvalidArgumentException(
              '$module must be a string. Actual type: ' . gettype($module));
        }
        $req->setModule($module);
      }
  
      try {
        ApiProxy::makeSyncCall('modules', 'GetVersions', $req, $resp);
      } catch (ApplicationError $e) {
        throw errorCodeToException($e->getApplicationError());
      }
      return $resp->getVersionList();
    }
code_tokens: public static function getVersions ( $ module = null ) { $ req = new GetVersionsRequest ( ) ; $ resp = new GetVersionsResponse ( ) ; if ( $ module !== null ) { if ( ! is_string ( $ module ) ) { throw new \ InvalidArgumentException ( '$module must be a string. Actual type: ' . gettype ( $ module ) ) ; } $ req -> setModule ( $ module ) ; } try { ApiProxy :: makeSyncCall ( 'modules' , 'GetVersions' , $ req , $ resp ) ; } catch ( ApplicationError $ e ) { throw errorCodeToException ( $ e -> getApplicationError ( ) ) ; } return $ resp -> getVersionList ( ) ; }
docstring: Get an array of all versions associated with a module.
  
  @param string $module The name of the module to retrieve the versions for.
  If null then the versions for the current module will be retrieved.
  
  @return string[] An array of strings containing the names of versions
  associated with the module. The current version will also be included in
  this list.
  
  @throws \InvalidArgumentException If $module is not a string.
  @throws ModulesException If the given $module isn't valid.
  @throws TransientModulesException if there is an issue fetching the
  information.
docstring_tokens: Get an array of all versions associated with a module .