| 1 | <?php |
||
| 5 | final class EventSubscriber |
||
| 6 | { |
||
| 7 | /** @var \Spatie\EventProjector\StoredEventRepository */ |
||
| 8 | private $repository; |
||
| 9 | |||
| 10 | public function __construct(string $storedEventRepository) |
||
| 14 | |||
| 15 | public function subscribe($events): void |
||
| 19 | |||
| 20 | public function handle(string $eventName, $payload): void |
||
| 28 | |||
| 29 | public function storeEvent(ShouldBeStored $event): void |
||
| 34 | |||
| 35 | private function shouldBeStored($event): bool |
||
| 43 | } |
||
| 44 |