public
|
#
__construct( triagens\ArangoDb\Batch $batch, mixed $id, mixed $type, mixed $request, mixed $response, mixed $options )
Constructor
Parameters
- $batch
- the batch object, that this part belongs to
- $id
- The id of the batch part. TMust be unique and wil be passed to the server in the content-id header
- $type
- The type of the request. This is to distinguish the different request type in order to return correct results.
- $request
- The request string
- $response
- The response string
- $options
- optional, options like sanitize, that can be passed to the request/response handler.
|
public
triagens\ArangoDb\BatchPart
|
|
public
triagens\ArangoDb\BatchPart
|
#
setId( mixed $id )
Sets the id for the current batch part.
Sets the id for the current batch part.
Parameters
Returns
|
public
mixed
|
#
getId( )
Gets the id for the current batch part.
Gets the id for the current batch part.
Returns
mixed
|
public
triagens\ArangoDb\BatchPart
|
#
setType( mixed $type )
Sets the type for the current batch part.
Sets the type for the current batch part.
Parameters
Returns
|
public
mixed
|
#
getType( )
Gets the type for the current batch part.
Gets the type for the current batch part.
Returns
mixed
|
public
triagens\ArangoDb\BatchPart
|
#
setRequest( mixed $request )
Sets the request for the current batch part.
Sets the request for the current batch part.
Parameters
Returns
|
public
array
|
#
getRequest( )
Gets the request for the current batch part.
Gets the request for the current batch part.
Returns
array
|
public
triagens\ArangoDb\BatchPart
|
#
setResponse( mixed $response )
Sets the response for the current batch part.
Sets the response for the current batch part.
Parameters
Returns
|
public
triagens\ArangoDb\HttpResponse
|
#
getResponse( )
Gets the response for the current batch part.
Gets the response for the current batch part.
Returns
|
public
integer
|
#
getHttpCode( )
Gets the HttpCode for the current batch part.
Gets the HttpCode for the current batch part.
Returns
integer
|
public
mixed
|
#
getProcessedResponse( )
Get the batch part identified by the array key (0...n) or its id (if it was set with nextBatchPartId($id) )
Get the batch part identified by the array key (0...n) or its id (if it was set with nextBatchPartId($id) )
Returns
mixed $partId
Throws
|