PHP Class GraphAware\Neo4j\Client\ClientBuilder

Show file Open project: graphaware/neo4j-php-client Class Usage Examples

Protected Properties

Property Type Description
$config array

Public Methods

Method Description
__construct ( array $config = [] )
addConnection ( string $alias, string $uri, GraphAware\Common\Driver\ConfigInterface $config = null ) : ClientBuilder Add a connection to the handled connections.
build ( ) : GraphAware\Neo4j\Client\ClientInterface Builds a Client based on the connections given.
create ( array $config = [] ) : ClientBuilder Creates a new Client factory.
preflightEnv ( string $variable )
registerEventListener ( string $eventName, mixed $callback )
setDefaultTimeout ( integer $timeout )
setMaster ( string $connectionAlias )

Private Methods

Method Description
getDefaultTimeout ( ) : integer

Method Details

__construct() public method

public __construct ( array $config = [] )
$config array

addConnection() public method

Add a connection to the handled connections.
public addConnection ( string $alias, string $uri, GraphAware\Common\Driver\ConfigInterface $config = null ) : ClientBuilder
$alias string
$uri string
$config GraphAware\Common\Driver\ConfigInterface
return ClientBuilder

build() public method

Builds a Client based on the connections given.
public build ( ) : GraphAware\Neo4j\Client\ClientInterface
return GraphAware\Neo4j\Client\ClientInterface

create() public static method

Creates a new Client factory.
public static create ( array $config = [] ) : ClientBuilder
$config array
return ClientBuilder

preflightEnv() public method

public preflightEnv ( string $variable )
$variable string

registerEventListener() public method

public registerEventListener ( string $eventName, mixed $callback )
$eventName string
$callback mixed

setDefaultTimeout() public method

public setDefaultTimeout ( integer $timeout )
$timeout integer

setMaster() public method

public setMaster ( string $connectionAlias )
$connectionAlias string

Property Details

$config protected property

protected array $config
return array