1 | <?php |
||
5 | class EventSubscriber |
||
6 | { |
||
7 | /** @var \Spatie\EventProjector\EventProjectionist */ |
||
8 | protected $evenSorcerer; |
||
9 | |||
10 | public function __construct(EventProjectionist $evenSorcerer) |
||
14 | |||
15 | public function subscribe($events) |
||
19 | |||
20 | public function handleEvent(string $eventName, $payload) |
||
28 | |||
29 | public function storeEvent(ShouldBeStored $event) |
||
37 | |||
38 | protected function shouldBeStored($event): bool |
||
46 | } |
||
47 |