PHP Class GraphAware\Neo4j\Client\Client

Inheritance: implements GraphAware\Neo4j\Client\ClientInterface
Datei anzeigen Open project: graphaware/neo4j-php-client Class Usage Examples

Protected Properties

Property Type Description
$connectionManager GraphAware\Neo4j\Client\Connection\ConnectionManager
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface

Public Methods

Method Description
__construct ( ConnectionManager $connectionManager, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher = null )
getConnectionManager ( ) : ConnectionManager
getEventDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface
getLabels ( string | null $conn = null ) : Label[]
run ( $query, null | array $parameters = null, null | string $tag = null, null | string $connectionAlias = null ) : GraphAware\Common\Result\Result | null Run a Cypher statement against the default database or the database specified.
runStack ( GraphAware\Neo4j\Client\StackInterface $stack ) : ResultCollection | null
runWrite ( string $query, null | array $parameters = null, null | string $tag = null ) : GraphAware\Common\Result\Result
sendCypherQuery ( string $query, null | array $parameters = null, null | string $tag = null, null | string $connectionAlias = null ) : GraphAware\Common\Result\Result
sendWriteQuery ( string $query, null | array $parameters = null, null | string $tag = null ) : GraphAware\Common\Result\Result
stack ( string | null $tag = null, string | null $connectionAlias = null ) : GraphAware\Neo4j\Client\StackInterface
transaction ( null | string $connectionAlias = null ) : Transaction

Private Methods

Method Description
pipeline ( null | string $query = null, null | array $parameters = null, null | string $tag = null, null | string $connectionAlias = null ) : GraphAware\Common\Driver\PipelineInterface

Method Details

__construct() public method

public __construct ( ConnectionManager $connectionManager, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher = null )
$connectionManager GraphAware\Neo4j\Client\Connection\ConnectionManager
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface

getConnectionManager() public method

public getConnectionManager ( ) : ConnectionManager
return GraphAware\Neo4j\Client\Connection\ConnectionManager

getEventDispatcher() public method

public getEventDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface
return Symfony\Component\EventDispatcher\EventDispatcherInterface

getLabels() public method

public getLabels ( string | null $conn = null ) : Label[]
$conn string | null
return GraphAware\Neo4j\Client\Schema\Label[]

run() public method

Run a Cypher statement against the default database or the database specified.
public run ( $query, null | array $parameters = null, null | string $tag = null, null | string $connectionAlias = null ) : GraphAware\Common\Result\Result | null
$query
$parameters null | array
$tag null | string
$connectionAlias null | string
return GraphAware\Common\Result\Result | null

runStack() public method

public runStack ( GraphAware\Neo4j\Client\StackInterface $stack ) : ResultCollection | null
$stack GraphAware\Neo4j\Client\StackInterface
return GraphAware\Neo4j\Client\Result\ResultCollection | null

runWrite() public method

public runWrite ( string $query, null | array $parameters = null, null | string $tag = null ) : GraphAware\Common\Result\Result
$query string
$parameters null | array
$tag null | string
return GraphAware\Common\Result\Result

sendCypherQuery() public method

Deprecation: since 4.0 - will be removed in 5.0 - use $client->run() instead
public sendCypherQuery ( string $query, null | array $parameters = null, null | string $tag = null, null | string $connectionAlias = null ) : GraphAware\Common\Result\Result
$query string
$parameters null | array
$tag null | string
$connectionAlias null | string
return GraphAware\Common\Result\Result

sendWriteQuery() public method

Deprecation: since 4.0 - will be removed in 5.0 - use $client->runWrite() instead
public sendWriteQuery ( string $query, null | array $parameters = null, null | string $tag = null ) : GraphAware\Common\Result\Result
$query string
$parameters null | array
$tag null | string
return GraphAware\Common\Result\Result

stack() public method

public stack ( string | null $tag = null, string | null $connectionAlias = null ) : GraphAware\Neo4j\Client\StackInterface
$tag string | null
$connectionAlias string | null
return GraphAware\Neo4j\Client\StackInterface

transaction() public method

public transaction ( null | string $connectionAlias = null ) : Transaction
$connectionAlias null | string
return GraphAware\Neo4j\Client\Transaction\Transaction

Property Details

$connectionManager protected_oe property

protected ConnectionManager,GraphAware\Neo4j\Client\Connection $connectionManager
return GraphAware\Neo4j\Client\Connection\ConnectionManager

$eventDispatcher protected_oe property

protected EventDispatcherInterface,Symfony\Component\EventDispatcher $eventDispatcher
return Symfony\Component\EventDispatcher\EventDispatcherInterface