/**
  * @param array $statements
  *
  * @return \Neoxygen\NeoClient\Formatter\Result|\GraphAware\NeoClient\Formatter\Results[]
  *
  * @throws \Neoxygen\NeoClient\Exception\Neo4jException
  */
 public function pushMultiple(array $statements)
 {
     $this->checkIfOpened();
     $httpResponse = $this->client->pushMultipleToTransaction($this->transactionId, $statements);
     $response = $this->handleResponse($httpResponse);
     if ($this->client->newFormattingService) {
         return $response->getResults();
     }
     return $response->getResult();
 }
 /**
  * @param array $statements
  *
  * @return \Neoxygen\NeoClient\Formatter\Result|\GraphAware\NeoClient\Formatter\Results[]
  *
  * @throws \Neoxygen\NeoClient\Exception\Neo4jException
  */
 public function pushMultiple(array $statements)
 {
     $this->checkIfOpened();
     try {
         $httpResponse = $this->client->pushMultipleToTransaction($this->transactionId, $statements);
         $response = $this->handleResponse($httpResponse);
         if ($this->client->newFormattingService) {
             return $response->getResults();
         }
         return $response->getResult();
     } catch (HttpException $e) {
         $this->rollback();
         throw $e;
     }
 }