| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class Digraph |
||
| 16 | { |
||
| 17 | /** @var HasDotRepresentation[] */ |
||
| 18 | private $elements; |
||
| 19 | |||
| 20 | 93 | public function __construct() |
|
| 21 | { |
||
| 22 | 93 | $this->elements = []; |
|
| 23 | 93 | } |
|
| 24 | |||
| 25 | /** @param HasDotRepresentation[] */ |
||
| 26 | 84 | public function add(array $definitions): void |
|
| 29 | 84 | } |
|
| 30 | |||
| 31 | /** @return HasDotRepresentation[] */ |
||
| 32 | 90 | public function elements(): array |
|
| 33 | { |
||
| 34 | 90 | return $this->elements; |
|
| 35 | } |
||
| 36 | |||
| 37 | 90 | public function id(): string |
|
| 40 | } |
||
| 41 | } |
||
| 42 |