@@ -87,7 +87,7 @@ |
||
87 | 87 | /** |
88 | 88 | * @param \Spatie\EventProjector\ShouldBeStored|\Spatie\EventProjector\ShouldBeStored[] $events |
89 | 89 | * |
90 | - * @return $this |
|
90 | + * @return FakeAggregateRoot |
|
91 | 91 | */ |
92 | 92 | public static function fake($events = []): FakeAggregateRoot |
93 | 93 | { |
@@ -3,11 +3,11 @@ |
||
3 | 3 | namespace Spatie\EventProjector; |
4 | 4 | |
5 | 5 | use Exception; |
6 | -use Illuminate\Support\Arr; |
|
7 | 6 | use Illuminate\Contracts\Support\Arrayable; |
8 | -use Spatie\EventProjector\Facades\Projectionist; |
|
9 | -use Spatie\EventProjector\Exceptions\InvalidStoredEvent; |
|
7 | +use Illuminate\Support\Arr; |
|
10 | 8 | use Spatie\EventProjector\EventSerializers\EventSerializer; |
9 | +use Spatie\EventProjector\Exceptions\InvalidStoredEvent; |
|
10 | +use Spatie\EventProjector\Facades\Projectionist; |
|
11 | 11 | |
12 | 12 | class StoredEvent implements Arrayable |
13 | 13 | { |
@@ -4,9 +4,9 @@ |
||
4 | 4 | |
5 | 5 | use Carbon\Carbon; |
6 | 6 | use Illuminate\Support\LazyCollection; |
7 | -use Spatie\EventProjector\Models\EloquentStoredEvent; |
|
8 | 7 | use Spatie\EventProjector\EventSerializers\EventSerializer; |
9 | 8 | use Spatie\EventProjector\Exceptions\InvalidEloquentStoredEventModel; |
9 | +use Spatie\EventProjector\Models\EloquentStoredEvent; |
|
10 | 10 | |
11 | 11 | class EloquentStoredEventRepository implements StoredEventRepository |
12 | 12 | { |
@@ -3,13 +3,13 @@ |
||
3 | 3 | namespace Spatie\EventProjector\EventHandlers; |
4 | 4 | |
5 | 5 | use Exception; |
6 | +use Illuminate\Support\Collection; |
|
6 | 7 | use ReflectionClass; |
7 | 8 | use ReflectionMethod; |
8 | 9 | use ReflectionParameter; |
9 | -use Illuminate\Support\Collection; |
|
10 | -use Spatie\EventProjector\StoredEvent; |
|
11 | -use Spatie\EventProjector\ShouldBeStored; |
|
12 | 10 | use Spatie\EventProjector\Exceptions\InvalidEventHandler; |
11 | +use Spatie\EventProjector\ShouldBeStored; |
|
12 | +use Spatie\EventProjector\StoredEvent; |
|
13 | 13 | |
14 | 14 | trait HandlesEvents |
15 | 15 | { |
@@ -3,8 +3,8 @@ |
||
3 | 3 | namespace Spatie\EventProjector\Events; |
4 | 4 | |
5 | 5 | use Exception; |
6 | -use Spatie\EventProjector\StoredEvent; |
|
7 | 6 | use Spatie\EventProjector\EventHandlers\EventHandler; |
7 | +use Spatie\EventProjector\StoredEvent; |
|
8 | 8 | |
9 | 9 | final class EventHandlerFailedHandlingEvent |
10 | 10 | { |
@@ -5,14 +5,14 @@ |
||
5 | 5 | use Exception; |
6 | 6 | use Illuminate\Support\Arr; |
7 | 7 | use Illuminate\Support\Collection; |
8 | -use Spatie\EventProjector\Projectors\Projector; |
|
9 | 8 | use Spatie\EventProjector\EventHandlers\EventHandler; |
9 | +use Spatie\EventProjector\EventHandlers\EventHandlerCollection; |
|
10 | +use Spatie\EventProjector\Events\EventHandlerFailedHandlingEvent; |
|
10 | 11 | use Spatie\EventProjector\Events\FinishedEventReplay; |
11 | 12 | use Spatie\EventProjector\Events\StartingEventReplay; |
12 | -use Spatie\EventProjector\Projectors\QueuedProjector; |
|
13 | 13 | use Spatie\EventProjector\Exceptions\InvalidEventHandler; |
14 | -use Spatie\EventProjector\EventHandlers\EventHandlerCollection; |
|
15 | -use Spatie\EventProjector\Events\EventHandlerFailedHandlingEvent; |
|
14 | +use Spatie\EventProjector\Projectors\Projector; |
|
15 | +use Spatie\EventProjector\Projectors\QueuedProjector; |
|
16 | 16 | |
17 | 17 | final class Projectionist |
18 | 18 | { |