GraphAware\Neo4j\Client\StackInterface::statements PHP Метод

statements() публичный Метод

public statements ( ) : GraphAware\Common\Cypher\Statement[]
Результат GraphAware\Common\Cypher\Statement[]
    public function statements();

Usage Example

Пример #1
0
 /**
  * @param StackInterface $stack
  *
  * @return mixed
  */
 public function runStack(StackInterface $stack)
 {
     if (!$this->driverTransaction->isOpen() && !in_array($this->driverTransaction->status(), ['COMMITED', 'ROLLED_BACK'])) {
         $this->driverTransaction->begin();
     }
     $sts = [];
     foreach ($stack->statements() as $statement) {
         $sts[] = $statement;
     }
     return $this->driverTransaction->runMultiple($sts);
 }
All Usage Examples Of GraphAware\Neo4j\Client\StackInterface::statements