private function _batchUrl($batchId, $subPath = '')
    {
        $ebid = rawurlencode($batchId);

        if (empty($ebid)) {
            throw new \InvalidArgumentException("Empty batch ID given");
        }

        return $this->_url('/batches/' . $ebid . $subPath);
    }
private function _batchUrl($batchId, $subPath = '')
    {
        $ebid = rawurlencode($batchId);

        if (empty($ebid)) {
            throw new \InvalidArgumentException("Empty batch ID given");
        }

        return $this->_url('/batches/' . $ebid . $subPath);
    }
private function _batchUrl ( $ batchId , $ subPath = '' ) { $ ebid = rawurlencode ( $ batchId ) ; if ( empty ( $ ebid ) ) { throw new \ InvalidArgumentException ( "Empty batch ID given" ) ; } return $ this -> _url ( '/batches/' . $ ebid . $ subPath ) ; }
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
Builds an endpoint URL for the given batch and sub - path .