/** * {@inheritdoc} */ protected function inheritFromTemplate(Vial $template = null) { parent::inheritFromTemplate($template); if ($template instanceof StockVial) { $this->setStock($template->getStock()); } }
/** * {@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()); } }
/** * {@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()); } }