| Conditions | 4 |
| Paths | 6 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function getCommitQuery(): QueryInterface |
||
| 31 | { |
||
| 32 | $query = 'CREATE '; |
||
| 33 | foreach ($this->nodes as $index => $node) { |
||
| 34 | $query .= $node->toString() . ', '; |
||
| 35 | } |
||
| 36 | $edgeCount = count($this->edges); |
||
| 37 | foreach ($this->edges as $index => $edge) { |
||
| 38 | $query .= $edge->toString(); |
||
| 39 | if ($index < $edgeCount - 1) { |
||
| 40 | $query .= ', '; |
||
| 41 | } |
||
| 42 | } |
||
| 43 | return new Query($this->name, $query); |
||
| 44 | } |
||
| 58 |