original_string: private function _batchUrl($batchId, $subPath = '')
      {
          $ebid = rawurlencode($batchId);
  
          if (empty($ebid)) {
              throw new \InvalidArgumentException("Empty batch ID given");
          }
  
          return $this->_url('/batches/' . $ebid . $subPath);
      }
code: private function _batchUrl($batchId, $subPath = '')
      {
          $ebid = rawurlencode($batchId);
  
          if (empty($ebid)) {
              throw new \InvalidArgumentException("Empty batch ID given");
          }
  
          return $this->_url('/batches/' . $ebid . $subPath);
      }
code_tokens: private function _batchUrl ( $ batchId , $ subPath = '' ) { $ ebid = rawurlencode ( $ batchId ) ; if ( empty ( $ ebid ) ) { throw new \ InvalidArgumentException ( "Empty batch ID given" ) ; } return $ this -> _url ( '/batches/' . $ ebid . $ subPath ) ; }
docstring: Builds an endpoint URL for the given batch and sub-path.
  
  @param string $batchId a batch identifier
  @param string $subPath additional sub-path
  
  @return string a complete URL
  
  @throws \InvalidArgumentException if given an invalid batch ID
docstring_tokens: Builds an endpoint URL for the given batch and sub - path .