readModels = $readModels; } public function init(): void { foreach ($this->readModels as $readModel) { if (!$readModel->isInitialized()) { $readModel->init(); } } } public function isInitialized(): bool { foreach ($this->readModels as $readModel) { if (!$readModel->isInitialized()) { return false; } } return true; } public function reset(): void { foreach ($this->readModels as $readModel) { $readModel->reset(); } } public function delete(): void { foreach ($this->readModels as $readModel) { $readModel->delete(); } } public function apply($event): void { foreach ($this->readModels as $readModel) { $readModel->apply($event); } } }