| 1 | <?php |
||
| 10 | class EventsCommit |
||
| 11 | { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var int |
||
| 15 | */ |
||
| 16 | private $sequence; |
||
| 17 | /** |
||
| 18 | * @var int |
||
| 19 | */ |
||
| 20 | private $version; |
||
| 21 | /** |
||
| 22 | * @var EventWithMetaData[] |
||
| 23 | */ |
||
| 24 | private $eventsWithMetadata; |
||
| 25 | |||
| 26 | 9 | public function __construct( |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @return int |
||
| 39 | */ |
||
| 40 | 3 | public function getSequence(): int |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @return int |
||
| 47 | */ |
||
| 48 | 1 | public function getVersion(): int |
|
| 52 | |||
| 53 | /** |
||
| 54 | * @return EventWithMetaData[] |
||
| 55 | */ |
||
| 56 | 6 | public function getEventsWithMetadata(): array |
|
| 60 | |||
| 61 | public function filterEventsByClass(array $eventClasses): self |
||
| 73 | |||
| 74 | 3 | private function eventHasAnyOfThisClasses($event, array $eventClasses) |
|
| 85 | } |