@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * @param array<string, mixed> $payload |
| 69 | 69 | * @param TimeProvider $timeProvider |
| 70 | 70 | * |
| 71 | - * @return mixed|self |
|
| 71 | + * @return AbstractAggregateEvent |
|
| 72 | 72 | */ |
| 73 | 73 | final protected static function occurred(Identity $aggregateId, array $payload, ?TimeProvider $timeProvider = null) |
| 74 | 74 | { |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | /** |
| 122 | 122 | * {@inheritdoc} |
| 123 | 123 | * |
| 124 | - * @return mixed|self |
|
| 124 | + * @return AbstractAggregateEvent |
|
| 125 | 125 | */ |
| 126 | 126 | final public static function reconstitute(array $payload, array $attributes = []) |
| 127 | 127 | { |
@@ -14,10 +14,10 @@ |
||
| 14 | 14 | namespace Gears\EventSourcing\Event; |
| 15 | 15 | |
| 16 | 16 | use Gears\DTO\ScalarPayloadBehaviour; |
| 17 | -use Gears\Event\Time\SystemTimeProvider; |
|
| 18 | -use Gears\Event\Time\TimeProvider; |
|
| 19 | 17 | use Gears\EventSourcing\Aggregate\AggregateBehaviour; |
| 20 | 18 | use Gears\EventSourcing\Aggregate\AggregateVersion; |
| 19 | +use Gears\Event\Time\SystemTimeProvider; |
|
| 20 | +use Gears\Event\Time\TimeProvider; |
|
| 21 | 21 | use Gears\Identity\Identity; |
| 22 | 22 | use Gears\Immutability\ImmutabilityBehaviour; |
| 23 | 23 | |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | * @param Identity $aggregateId |
| 61 | 61 | * @param TimeProvider $timeProvider |
| 62 | 62 | * |
| 63 | - * @return mixed|self |
|
| 63 | + * @return AbstractEmptyAggregateEvent |
|
| 64 | 64 | */ |
| 65 | 65 | final protected static function occurred(Identity $aggregateId, ?TimeProvider $timeProvider = null) |
| 66 | 66 | { |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | /** |
| 113 | 113 | * {@inheritdoc} |
| 114 | 114 | * |
| 115 | - * @return mixed|self |
|
| 115 | + * @return AbstractEmptyAggregateEvent |
|
| 116 | 116 | * |
| 117 | 117 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
| 118 | 118 | */ |
@@ -14,10 +14,10 @@ |
||
| 14 | 14 | namespace Gears\EventSourcing\Event; |
| 15 | 15 | |
| 16 | 16 | use Gears\DTO\ScalarPayloadBehaviour; |
| 17 | -use Gears\Event\Time\SystemTimeProvider; |
|
| 18 | -use Gears\Event\Time\TimeProvider; |
|
| 19 | 17 | use Gears\EventSourcing\Aggregate\AggregateBehaviour; |
| 20 | 18 | use Gears\EventSourcing\Aggregate\AggregateVersion; |
| 19 | +use Gears\Event\Time\SystemTimeProvider; |
|
| 20 | +use Gears\Event\Time\TimeProvider; |
|
| 21 | 21 | use Gears\Identity\Identity; |
| 22 | 22 | use Gears\Immutability\ImmutabilityBehaviour; |
| 23 | 23 | |