GraphAware\Neo4j\Client\Connection\ConnectionManager::getMasterConnection PHP Method

getMasterConnection() public method

public getMasterConnection ( ) : Connection | null
return Connection | null
    public function getMasterConnection()
    {
        return $this->master;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * @param string      $query
  * @param null|array  $parameters
  * @param null|string $tag
  *
  * @return \GraphAware\Common\Result\Result
  *
  * @throws Neo4jException
  */
 public function runWrite($query, $parameters = null, $tag = null)
 {
     return $this->connectionManager->getMasterConnection()->run($query, $parameters, $tag);
 }