\Everyman\Neo4j\Command\BatchCommand

A single command executed in a batch

Summary

Methods
Properties
Constants
__construct()
execute()
No public properties found
No constants found
getData()
getMethod()
getPath()
handleResult()
getEntityCache()
getEntityMapper()
getTransport()
throwException()
handleSingleResult()
$client
$base
$opId
N/A
No private methods found
No private properties found
N/A

Properties

$client

$client : 

Type

$base

$base : 

Type

$opId

$opId : 

Type

Methods

__construct()

__construct(\Everyman\Neo4j\Client $client, \Everyman\Neo4j\Command $base, integer $opId)

Set the operation to drive the command

Parameters

\Everyman\Neo4j\Client $client
\Everyman\Neo4j\Command $base
integer $opId

execute()

execute() : mixed

Run the command and return a value signalling the result

Throws

\Everyman\Neo4j\Exception

on failure

Returns

mixed

getData()

getData() : mixed

Return the data to pass

Returns

mixed

getMethod()

getMethod() : string

Return the transport method to call

Returns

string

getPath()

getPath() : string

Return the path to use

Returns

string

handleResult()

handleResult(integer $code, array $headers, array $data) : mixed

Use the results

Parameters

integer $code
array $headers
array $data

Throws

\Everyman\Neo4j\Command\Batch\Exception

on failure

Returns

mixed

throwException()

throwException(string $message, integer $code, array $headers, array $data)

Throw an exception from handling the results

Parameters

string $message
integer $code
array $headers
array $data

Throws

\Everyman\Neo4j\Exception

handleSingleResult()

handleSingleResult(array $result) : mixed

Handle a single result from the batch of results

Parameters

array $result

Throws

\Everyman\Neo4j\Command\Batch\Exception

on failure

Returns

mixed