PHP Class GraphAware\Neo4j\Client\ClientBuilder

Afficher le fichier Open project: graphaware/neo4j-php-client Class Usage Examples

Protected Properties

Свойство Type Description
$config array

Méthodes publiques

Méthode 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

Méthode Description
getDefaultTimeout ( ) : integer

Method Details

__construct() public méthode

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

addConnection() public méthode

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
Résultat ClientBuilder

build() public méthode

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

create() public static méthode

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

preflightEnv() public méthode

public preflightEnv ( string $variable )
$variable string

registerEventListener() public méthode

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

setDefaultTimeout() public méthode

public setDefaultTimeout ( integer $timeout )
$timeout integer

setMaster() public méthode

public setMaster ( string $connectionAlias )
$connectionAlias string

Property Details

$config protected_oe property

protected array $config
Résultat array