public function add(Invoice $invoice) { $this->eventStore->apply(new EventStream\Name(Invoice::class), $invoice->getRecordedEvents()); }