1 | <?php |
||
11 | class HandleStoredEventJob implements ShouldQueue |
||
12 | { |
||
13 | use InteractsWithQueue, Queueable, SerializesModels; |
||
14 | |||
15 | /** @var \Spatie\EventProjector\Models\StoredEvent */ |
||
16 | public $storedEvent; |
||
17 | |||
18 | /** @var array */ |
||
19 | public $tags; |
||
20 | |||
21 | public function __construct(StoredEvent $storedEvent, array $tags) |
||
26 | |||
27 | public function handle(Projectionist $projectionist) |
||
31 | |||
32 | public function tags(): array |
||
42 | |||
43 | public static function createForEvent(StoredEvent $event, array $tags) |
||
47 | } |
||
48 |