| 1 | <?php |
||
| 10 | final class HandleStoredEventJob implements ShouldQueue |
||
| 11 | { |
||
| 12 | use InteractsWithQueue, Queueable, SerializesModels; |
||
| 13 | |||
| 14 | /** @var \Spatie\EventProjector\StoredEvent */ |
||
| 15 | public $storedEvent; |
||
| 16 | |||
| 17 | /** @var array */ |
||
| 18 | public $tags; |
||
| 19 | |||
| 20 | public function __construct(StoredEvent $storedEvent, array $tags) |
||
| 21 | { |
||
| 22 | $this->storedEvent = $storedEvent; |
||
| 23 | |||
| 24 | $this->tags = $tags; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function handle(Projectionist $projectionist): void |
||
| 31 | |||
| 32 | public function tags(): array |
||
| 38 | |||
| 39 | public static function createForEvent(StoredEvent $event, array $tags): self |
||
| 43 | } |
||
| 44 |