1 | <?php |
||
11 | class Snapshot |
||
12 | { |
||
13 | /** @var \Spatie\EventProjector\EventProjectionist */ |
||
14 | protected $eventProjectionist; |
||
15 | |||
16 | /** @var \Illuminate\Contracts\Filesystem\Filesystem */ |
||
17 | protected $disk; |
||
18 | |||
19 | /** @var string */ |
||
20 | protected $fileName; |
||
21 | |||
22 | public function __construct( |
||
34 | |||
35 | public function isValid(): bool |
||
39 | |||
40 | public function fileName(): string |
||
44 | |||
45 | public function lastProcessedEventId(): int |
||
49 | |||
50 | public function lastProcessedEvent(): StoredEvent |
||
64 | |||
65 | public function projectorName(): string |
||
69 | |||
70 | public function projector(): Snapshottable |
||
80 | |||
81 | public function name(): string |
||
85 | |||
86 | /** |
||
87 | * @param string|resource $contents |
||
88 | */ |
||
89 | public function write($contents) |
||
93 | |||
94 | public function read(): ?string |
||
98 | |||
99 | public function readStream() |
||
103 | |||
104 | public function restore(): self |
||
105 | { |
||
106 | $storedEvent = $this->lastProcessedEvent(); |
||
107 | |||
108 | $this->projector()->restoreSnapshot($this); |
||
109 | |||
110 | $this->config['projector_status_model']::rememberLastProcessedEvent($storedEvent); |
||
111 | } |
||
112 | |||
113 | public function delete() |
||
117 | |||
118 | public function createdAt(): Carbon |
||
124 | |||
125 | protected function fileNameParts(): array |
||
139 | } |
||
140 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.