| Total Complexity | 10 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class GraphConstructor |
||
| 10 | { |
||
| 11 | private string $name; |
||
| 12 | private array $nodes = []; |
||
| 13 | private array $edges = []; |
||
| 14 | |||
| 15 | public function __construct(string $name) |
||
| 16 | { |
||
| 17 | $this->name = $name; |
||
| 18 | } |
||
| 19 | |||
| 20 | public function addNode(Node $node): void |
||
| 21 | { |
||
| 22 | $this->nodes[] = $node; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function addEdge(Edge $edge): void |
||
| 26 | { |
||
| 27 | $this->edges[] = $edge; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function getCommitQuery(): QueryInterface |
||
| 44 | } |
||
| 45 | |||
| 46 | public function getCommitQueryWithMerge(): QueryInterface |
||
| 47 | { |
||
| 58 |