/** * Get deleted product * * @return \XLite\Model\Product|void */ protected function getDeletedProduct() { if (!isset($this->dumpProduct)) { $this->dumpProduct = new \XLite\Model\Product(); $this->dumpProduct->setPrice($this->getItemPrice()); $this->dumpProduct->setName($this->getName()); $this->dumpProduct->setSku($this->getSku()); } return $this->dumpProduct; }
/** * {@inheritDoc} */ public function setPrice($price) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'setPrice', array($price)); return parent::setPrice($price); }