Exemplo n.º 1
0
 /**
  * @throws CollectionIsEmpty
  */
 private function ensureCollectionIsNotEmpty()
 {
     if (count($this->events) === 0) {
         throw CollectionIsEmpty::create();
     }
 }
 /**
  * @throws CollectionIsEmpty
  */
 private function guardAmountOfMetadataEnrichers()
 {
     if (!$this->metadataEnrichers) {
         throw CollectionIsEmpty::create();
     }
 }