Total Complexity | 5 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class Digraph implements HasDotRepresentation |
||
11 | { |
||
12 | /** @var HasDotRepresentation[] */ |
||
13 | private $dotElements; |
||
14 | |||
15 | public function __construct() |
||
16 | { |
||
17 | $this->dotElements = []; |
||
18 | } |
||
19 | |||
20 | /** @param HasDotRepresentation[] */ |
||
21 | public function add(array $definitions): void |
||
22 | { |
||
23 | $this->dotElements = array_merge($this->dotElements, $definitions); |
||
24 | } |
||
25 | |||
26 | public function toDotLanguage(): string |
||
33 | } |
||
34 | |||
35 | private function elementsToDotLanguage(): string |
||
42 | } |
||
43 | |||
44 | private function graphId(): string |
||
49 |