1 | <?php |
||
19 | abstract class Entity implements EntityInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var IdInterface |
||
23 | */ |
||
24 | protected $id; |
||
25 | |||
26 | /** |
||
27 | * @param IdInterface $id |
||
28 | */ |
||
29 | public function __construct(IdInterface $id) |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function id() |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function equals($other) |
||
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | public function hashCode() |
||
57 | } |
||
58 |