private function doBatch($method, $request)
    {
        $batchPart = null;
        if ($this->_captureBatch === true) {

            /** @var $batch Batch */
            $batch = $this->getActiveBatch();

            $batchPart = $batch->append($method, $request);
        }

        # do batch processing
        return $batchPart;
    }
private function doBatch($method, $request)
    {
        $batchPart = null;
        if ($this->_captureBatch === true) {

            /** @var $batch Batch */
            $batch = $this->getActiveBatch();

            $batchPart = $batch->append($method, $request);
        }

        # do batch processing
        return $batchPart;
    }
private function doBatch ( $ method , $ request ) { $ batchPart = null ; if ( $ this -> _captureBatch === true ) { /** @var $batch Batch */ $ batch = $ this -> getActiveBatch ( ) ; $ batchPart = $ batch -> append ( $ method , $ request ) ; } # do batch processing return $ batchPart ; }
This is a helper function to executeRequest that captures requests if we're in batch mode

@param mixed  $method  - The method of the request (GET, POST...)

@param string $request - The request to process

This checks if we're in batch mode and returns a placeholder object,
since we need to return some object that is expected by the caller.
if we're not in batch mode it does not return anything, and

@return mixed Batchpart or null if not in batch capturing mode
@throws \ArangoDBClient\ClientException
This is a helper function to executeRequest that captures requests if we re in batch mode