| 1 | <?php |
||
| 21 | final class StatementId |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var Uuid |
||
| 25 | */ |
||
| 26 | private $uuid; |
||
| 27 | |||
| 28 | private function __construct() |
||
| 31 | |||
| 32 | public static function fromUuid(Uuid $uuid) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Creates a statement id based on the given UUID string. |
||
| 42 | * |
||
| 43 | * @param string $id |
||
| 44 | * |
||
| 45 | * @return StatementId |
||
| 46 | * |
||
| 47 | * @throws \InvalidArgumentException when the given id is not a well-formed UUID |
||
| 48 | */ |
||
| 49 | public static function fromString($id) |
||
| 53 | |||
| 54 | public function getValue() |
||
| 58 | |||
| 59 | public function equals(StatementId $id) |
||
| 63 | } |
||
| 64 |