| Total Complexity | 3 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class LightSwitchId implements AggregateRootId |
||
| 10 | { |
||
| 11 | public function __construct(private string $id) |
||
| 12 | { |
||
| 13 | } |
||
| 14 | |||
| 15 | public function toString(): string |
||
| 16 | 5 | { |
|
| 17 | return $this->id; |
||
| 18 | 5 | } |
|
| 19 | 5 | ||
| 20 | public static function fromString(string $aggregateRootId): AggregateRootId |
||
| 23 | 4 | } |
|
| 24 | } |
||
| 25 |