GraphAware\Neo4j\Client\Connection\ConnectionManager::getMasterConnection PHP Méthode

getMasterConnection() public méthode

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

Usage Example

 /**
  * @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);
 }