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