コード例 #1
0
ファイル: SurchargeOwner.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Reset surcharge
  *
  * @param \XLite\Model\Order\Surcharge $surcharge Surcharge
  *
  * @return \XLite\Model\Order\Surcharge
  */
 public function resetSurcharge($surcharge)
 {
     $surcharge->setOwner(null);
     return $surcharge;
 }
コード例 #2
0
 /**
  * {@inheritDoc}
  */
 public function setOwner(\XLite\Model\Base\SurchargeOwner $owner = NULL)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setOwner', array($owner));
     return parent::setOwner($owner);
 }