| 1 | <?php |
||
| 9 | trait ProjectsEvents |
||
| 10 | { |
||
| 11 | public function hasReceivedAllPriorEvents(StoredEvent $storedEvent): bool |
||
| 15 | |||
| 16 | public function rememberReceivedEvent(StoredEvent $storedEvent) |
||
| 20 | |||
| 21 | public function hasReceivedAllEvents(): bool |
||
| 25 | |||
| 26 | public function getName(): string |
||
| 34 | |||
| 35 | public function getLastProcessedEventId(): int |
||
| 39 | |||
| 40 | public function lastEventProcessedAt(): Carbon |
||
| 44 | |||
| 45 | protected function getStatus(): ProjectorStatus |
||
| 49 | } |
||
| 50 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: