Пример #1
0
 /**
  * {@inheritdoc}
  */
 protected function inheritFromTemplate(Vial $template = null)
 {
     parent::inheritFromTemplate($template);
     if ($template instanceof StockVial) {
         $this->setStock($template->getStock());
     }
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 protected function inheritFromTemplate(Vial $template = null)
 {
     parent::inheritFromTemplate($template);
     if ($template instanceof CrossVial) {
         $this->setMale($template->getMale());
         $this->setMaleName($template->getMaleName());
         $this->setVirgin($template->getVirgin());
         $this->setVirginName($template->getVirginName());
     }
 }
Пример #3
0
 /**
  * {@inheritdoc}
  */
 protected function inheritFromTemplate(Vial $template = null)
 {
     parent::inheritFromTemplate($template);
     if ($template instanceof InjectionVial) {
         $this->setInjectionType($template->getInjectionType());
         $this->setConstructName($template->getConstructName());
         $this->setTargetStock($template->getTargetStock());
         $this->setTargetStockVial($template->getTargetStockVial());
         $this->setEmbryoCount($template->getEmbryoCount());
         $this->setVendor($template->getVendor());
         $this->setOrderNo($template->getOrderNo());
     }
 }