1 | <?php |
||
5 | abstract class AbstractId implements IdInterface |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * @var string |
||
10 | */ |
||
11 | private $id; |
||
12 | |||
13 | /** |
||
14 | * @param string $id |
||
15 | */ |
||
16 | public function __construct($id) |
||
20 | |||
21 | |||
22 | /** |
||
23 | * @{inheritdoc} |
||
24 | */ |
||
25 | public function get() |
||
29 | |||
30 | /** |
||
31 | * @{inheritdoc} |
||
32 | */ |
||
33 | public function __toString() |
||
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | public function jsonSerialize() |
||
45 | } |
||
46 |