Esempio n. 1
0
 /**
  * set Package
  * even if a participant can have multiple packages this service will only 
  * process one of them. So for multiple packages the participant will get 
  * multiple e-Tickets.
  * 
  * @param \ErsBase\Entity\Package $package
  */
 public function setPackage(Entity\Package $package)
 {
     $this->_package = $package;
     $this->setParticipant($package->getParticipant());
     foreach ($package->getItems() as $item) {
         if ($item->getProduct()->getPersonalized()) {
             $this->addPersonalItem($item);
         } else {
             $this->addItem($item);
         }
     }
 }