/** * {@inheritdoc} */ public function addChild(Vial $child) { parent::addChild($child); if ($child instanceof InjectionVial) { $child->setInjectionType($this->getInjectionType()); $child->setConstructName($this->getConstructName()); $child->setTargetStock($this->getTargetStock()); $child->setTargetStockVial($this->getTargetStockVial()); $child->setEmbryoCount($this->getEmbryoCount()); $child->setVendor($this->getVendor()); $child->setOrderNo($this->getOrderNo()); } }
/** * {@inheritdoc} */ public function addChild(Vial $child) { parent::addChild($child); if ($child instanceof CrossVial) { $child->setMale($this->getMale()); $child->setMaleName($this->getMaleName()); $child->setVirgin($this->getVirgin()); $child->setVirginName($this->getVirginName()); } }
/** * {@inheritdoc} */ public function addChild(Vial $child) { parent::addChild($child); if ($child instanceof StockVial) { $child->setStock($this->getStock()); } }