| Total Complexity | 3 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class Node implements HasDotRepresentation |
||
| 16 | { |
||
| 17 | /** @var HasNodeIdentifier */ |
||
| 18 | private $node; |
||
| 19 | |||
| 20 | /** @var string */ |
||
| 21 | private $options; |
||
| 22 | |||
| 23 | 54 | public function __construct(HasNodeIdentifier $node, string $htmlLabel) |
|
| 24 | { |
||
| 25 | 54 | $this->node = $node; |
|
| 26 | 54 | $this->options = $this->buildOptionsUsing($htmlLabel); |
|
| 27 | 54 | } |
|
| 28 | |||
| 29 | 27 | public function toDotLanguage(): string |
|
| 32 | } |
||
| 33 | |||
| 34 | 54 | private function buildOptionsUsing(string $htmlLabel): string |
|
| 39 |