1 | <?php |
||
8 | class DomainId implements ValueObject |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | private $value; |
||
14 | |||
15 | /** |
||
16 | * @var \Crisu83\ShortId\ShortId |
||
17 | */ |
||
18 | private static $identityGenerator; |
||
19 | |||
20 | /** |
||
21 | * DomainId constructor. |
||
22 | * |
||
23 | * @param string $value |
||
24 | */ |
||
25 | public function __construct($value = null) |
||
29 | |||
30 | /** |
||
31 | * @return string |
||
32 | */ |
||
33 | private static function nextIdentity() |
||
41 | |||
42 | /** |
||
43 | * @return string |
||
44 | */ |
||
45 | public function getValue() |
||
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | public function __toString() |
||
57 | } |
||
58 |