Ejemplo n.º 1
0
 /**
  * (non-PHPdoc)
  * @see    texdc\momento\EventStoreInterface::findAllSince()
  * @throws texdc\momento\exception\InvalidEventTypeException
  */
 public function findAllSince(EventId $anEventId)
 {
     $this->guardEventType($anEventId->eventType());
     return array_filter($this->events, function (EventInterface $anEvent) use($anEventId) {
         return $anEventId->occurredBefore($anEvent->eventId());
     });
 }