public function appendEvents($id, array $events) { $this->eventStore->appendEvents($id, $events); foreach ($events as $event) { $this->recordedEvents[] = $event; } }
/** @test */ function it_should_retrieve_0_events_if_last_event_id_is_provided() { $events = $this->store->eventsStoredAfter($this->event4->id()); $this->assertCount(0, $events); }
/** * @param Event $event * @return boolean */ public function handle(Event $event) { $this->eventStore->append($this->eventFactory->from($event)); }
public function handle($aDomainEvent) { $this->eventStore->append($aDomainEvent); }