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