| 1 | <?php |
||
| 19 | final class StatementId |
||
| 20 | { |
||
| 21 | private $uuid; |
||
| 22 | |||
| 23 | private function __construct() |
||
| 26 | |||
| 27 | public static function fromUuid(Uuid $uuid): self |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Creates a statement id based on the given UUID string. |
||
| 37 | * |
||
| 38 | * @throws \InvalidArgumentException when the given id is not a well-formed UUID |
||
| 39 | */ |
||
| 40 | public static function fromString(string $id): self |
||
| 44 | |||
| 45 | public function getValue(): string |
||
| 49 | |||
| 50 | public function equals(StatementId $id): bool |
||
| 54 | } |
||
| 55 |