| 1 | <?php |
||
| 8 | final class UuidAggregateRootId implements AggregateRootId |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | private $identifier; |
||
| 14 | |||
| 15 | 3 | public function __construct(string $identifier) |
|
| 19 | |||
| 20 | 7 | public function toString(): string |
|
| 24 | |||
| 25 | 1 | public function toUuid(): UuidInterface |
|
| 29 | |||
| 30 | 2 | public static function create(): UuidAggregateRootId |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @param string $aggregateRootId |
||
| 37 | * @return static |
||
| 38 | */ |
||
| 39 | 1 | public static function fromString(string $aggregateRootId): AggregateRootId |
|
| 43 | } |