@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | * Constructor |
| 7 | 7 | * |
| 8 | 8 | * Instantiate an Entity using its identifier. |
| 9 | - * @param ValueObjectInterface $identifier The identity Value Object. |
|
| 9 | + * @param ValueObject $identifier The identity Value Object. |
|
| 10 | 10 | * @return static |
| 11 | 11 | */ |
| 12 | 12 | public function __construct(ValueObject $identifier); |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | * Get Id |
| 16 | 16 | * |
| 17 | 17 | * Return the identifier Value Object. |
| 18 | - * @return ValueObjectInterface |
|
| 18 | + * @return ValueObject |
|
| 19 | 19 | */ |
| 20 | 20 | public function getId(); |
| 21 | 21 | |
@@ -32,6 +32,9 @@ |
||
| 32 | 32 | return $events; |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @return EventInterface |
|
| 37 | + */ |
|
| 35 | 38 | protected function restoreEvent($record) |
| 36 | 39 | { |
| 37 | 40 | $class = $record->event; |