コード例 #1
0
 /**
  * @param EnrichmentCollection $enrichments
  * @return EnrichmentCollection
  */
 private function decorateEnrichments(EnrichmentCollection $enrichments)
 {
     $newCollection = new EnrichmentCollection();
     $newCollection->setTotalCount($enrichments->getTotalCount());
     foreach ($enrichments as $enrichment) {
         $newCollection->append($this->checkTypeAndDecorate($enrichment));
     }
     return $newCollection;
 }