Completed
Push — master ( 94589f...e6854c )
by Julián
06:23
created
src/Event/AbstractAggregateEvent.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
13 13
 
14 14
 namespace Gears\EventSourcing\Event;
15 15
 
16
+use Gears\EventSourcing\Aggregate\AggregateVersion;
16 17
 use Gears\Event\Time\SystemTimeProvider;
17 18
 use Gears\Event\Time\TimeProvider;
18
-use Gears\EventSourcing\Aggregate\AggregateVersion;
19 19
 use Gears\Identity\Identity;
20 20
 
21 21
 /**
Please login to merge, or discard this patch.
src/Event/AbstractEmptyAggregateEvent.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
70 70
     /**
71 71
      * {@inheritdoc}
72 72
      *
73
-     * @return mixed|self
73
+     * @return AbstractEmptyAggregateEvent
74 74
      *
75 75
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
76 76
      */
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
13 13
 
14 14
 namespace Gears\EventSourcing\Event;
15 15
 
16
+use Gears\EventSourcing\Aggregate\AggregateVersion;
16 17
 use Gears\Event\Time\SystemTimeProvider;
17 18
 use Gears\Event\Time\TimeProvider;
18
-use Gears\EventSourcing\Aggregate\AggregateVersion;
19 19
 use Gears\Identity\Identity;
20 20
 
21 21
 /**
Please login to merge, or discard this patch.
src/Event/AggregateEventBehaviour.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      *
59 59
      * @throws \Gears\Event\Exception\EventException
60 60
      *
61
-     * @return mixed|self
61
+     * @return AggregateEventBehaviour
62 62
      */
63 63
     final public function withAggregateVersion(AggregateVersion $aggregateVersion)
64 64
     {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@
 block discarded – undo
13 13
 
14 14
 namespace Gears\EventSourcing\Event;
15 15
 
16
-use Gears\Event\EventBehaviour;
17
-use Gears\Event\Exception\EventException;
18 16
 use Gears\EventSourcing\Aggregate\AggregateBehaviour;
19 17
 use Gears\EventSourcing\Aggregate\AggregateVersion;
18
+use Gears\Event\EventBehaviour;
19
+use Gears\Event\Exception\EventException;
20 20
 use Gears\Identity\Identity;
21 21
 
22 22
 use function DeepCopy\deep_copy;
Please login to merge, or discard this patch.