1 | <?php |
||
10 | class ProjectorStatus extends Model |
||
11 | { |
||
12 | public $guarded = []; |
||
13 | |||
14 | public $casts = [ |
||
15 | 'has_received_all_events' => 'boolean', |
||
16 | ]; |
||
17 | |||
18 | public static function getForProjector(Projector $projector, string $stream = 'main'): ProjectorStatus |
||
25 | |||
26 | public static function getAllForProjector(Projector $projector): Collection |
||
30 | |||
31 | public function rememberLastProcessedEvent(StoredEvent $storedEvent): ProjectorStatus |
||
38 | |||
39 | public static function hasReceivedAllEvents(Projector $projector): bool |
||
47 | |||
48 | public function getProjector(): Projector |
||
52 | |||
53 | public function markAsReceivedAllEvents(): self |
||
61 | |||
62 | public function markasAsNotReceivedAllEvents(): self |
||
70 | } |
||
71 |