Beispiel #1
0
 /**
  * Get inventory
  *
  * @return \XLite\Model\Inventory
  */
 public function getInventory()
 {
     if (null === $this->inventory) {
         $this->inventory = new \XLite\Model\Inventory();
         $this->inventory->setProduct($this);
     }
     return $this->inventory;
 }
 /**
  * {@inheritDoc}
  */
 public function setProduct(\XLite\Model\Product $product = NULL)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setProduct', array($product));
     return parent::setProduct($product);
 }