@@ -32,7 +32,6 @@ |
||
32 | 32 | * Handle |
33 | 33 | * |
34 | 34 | * Central method to distribute command to an internal handler. |
35 | - * @param EventInterface $event An event that has occurred. |
|
36 | 35 | * @return void |
37 | 36 | */ |
38 | 37 | public function handle(Command $command); |
@@ -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 |
@@ -1,8 +1,5 @@ |
||
1 | 1 | <?php namespace C4tech\RayEmitter\Domain; |
2 | 2 | |
3 | -use C4tech\RayEmitter\Contracts\Domain\AggregateRoot as AggregateRootInterface; |
|
4 | -use C4tech\RayEmitter\Exceptions\UnknownProperty; |
|
5 | - |
|
6 | 3 | trait AggregateRoot // extends AggregateRootInterface |
7 | 4 | { |
8 | 5 | /** |
@@ -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; |