1 | <?php |
||
7 | final class EntityId |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $entityId; |
||
13 | |||
14 | /** |
||
15 | * @param string $entityId |
||
16 | */ |
||
17 | public function __construct($entityId) |
||
25 | |||
26 | /** |
||
27 | * @param EntityId $other |
||
28 | * @return bool |
||
29 | */ |
||
30 | public function equals(EntityId $other) |
||
34 | |||
35 | /** |
||
36 | * @return string |
||
37 | */ |
||
38 | public function getEntityId() |
||
42 | |||
43 | public function __toString() |
||
47 | } |
||
48 |