@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * @param array<string, mixed> $payload |
60 | 60 | * @param TimeProvider|null $timeProvider |
61 | 61 | * |
62 | - * @return mixed|self |
|
62 | + * @return AbstractAggregateEvent |
|
63 | 63 | */ |
64 | 64 | final protected static function occurred(Identity $aggregateId, array $payload, ?TimeProvider $timeProvider = null) |
65 | 65 | { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | /** |
77 | 77 | * {@inheritdoc} |
78 | 78 | * |
79 | - * @return mixed|self |
|
79 | + * @return AbstractAggregateEvent |
|
80 | 80 | */ |
81 | 81 | final public static function reconstitute(array $payload, array $attributes = []) |
82 | 82 | { |
@@ -14,9 +14,9 @@ |
||
14 | 14 | namespace Gears\EventSourcing\Event; |
15 | 15 | |
16 | 16 | use Gears\DTO\ScalarPayloadBehaviour; |
17 | +use Gears\EventSourcing\Aggregate\AggregateVersion; |
|
17 | 18 | use Gears\Event\Time\SystemTimeProvider; |
18 | 19 | use Gears\Event\Time\TimeProvider; |
19 | -use Gears\EventSourcing\Aggregate\AggregateVersion; |
|
20 | 20 | use Gears\Identity\Identity; |
21 | 21 | use Gears\Immutability\ImmutabilityBehaviour; |
22 | 22 |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | * @param Identity $aggregateId |
55 | 55 | * @param TimeProvider|null $timeProvider |
56 | 56 | * |
57 | - * @return mixed|self |
|
57 | + * @return AbstractEmptyAggregateEvent |
|
58 | 58 | */ |
59 | 59 | final protected static function occurred(Identity $aggregateId, ?TimeProvider $timeProvider = null) |
60 | 60 | { |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | /** |
71 | 71 | * {@inheritdoc} |
72 | 72 | * |
73 | - * @return mixed|self |
|
73 | + * @return AbstractEmptyAggregateEvent |
|
74 | 74 | * |
75 | 75 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
76 | 76 | */ |
@@ -14,9 +14,9 @@ |
||
14 | 14 | namespace Gears\EventSourcing\Event; |
15 | 15 | |
16 | 16 | use Gears\DTO\ScalarPayloadBehaviour; |
17 | +use Gears\EventSourcing\Aggregate\AggregateVersion; |
|
17 | 18 | use Gears\Event\Time\SystemTimeProvider; |
18 | 19 | use Gears\Event\Time\TimeProvider; |
19 | -use Gears\EventSourcing\Aggregate\AggregateVersion; |
|
20 | 20 | use Gears\Identity\Identity; |
21 | 21 | use Gears\Immutability\ImmutabilityBehaviour; |
22 | 22 |
@@ -13,9 +13,9 @@ |
||
13 | 13 | |
14 | 14 | namespace Gears\EventSourcing\Event; |
15 | 15 | |
16 | -use Gears\Event\Exception\EventException; |
|
17 | 16 | use Gears\EventSourcing\Aggregate\AggregateBehaviour; |
18 | 17 | use Gears\EventSourcing\Aggregate\AggregateVersion; |
18 | +use Gears\Event\Exception\EventException; |
|
19 | 19 | use Gears\Identity\Identity; |
20 | 20 | |
21 | 21 | use function DeepCopy\deep_copy; |