| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class DummyAggregateRootId implements AggregateRootId |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | private $identifier; |
||
| 14 | |||
| 15 | 9 | private function __construct(string $identifier) |
|
| 18 | 9 | } |
|
| 19 | |||
| 20 | /** |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | 4 | public function toString(): string |
|
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $aggregateRootId |
||
| 30 | * |
||
| 31 | * @return static |
||
| 32 | */ |
||
| 33 | 4 | public static function fromString(string $aggregateRootId): AggregateRootId |
|
| 36 | } |
||
| 37 | |||
| 38 | 9 | public static function generate(): AggregateRootId |
|
| 43 |