| Total Complexity | 5 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | final class IdentityId implements Id, JsonSerializable |
||
| 25 | { |
||
| 26 | private readonly string $value; |
||
| 27 | |||
| 28 | public function __construct(string $value) |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function getIdentityId(): string |
||
| 39 | } |
||
| 40 | |||
| 41 | public function equals(Id $other): bool |
||
| 42 | { |
||
| 43 | return $this == $other; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function __toString(): string |
||
| 47 | { |
||
| 48 | return $this->value; |
||
| 49 | } |
||
| 50 | |||
| 51 | public function jsonSerialize(): string |
||
| 54 | } |
||
| 55 | } |
||
| 56 |