/** * Set post office * * @param \XLite\Module\XC\CanadaPost\Model\Order\PostOffice $office Post office model (OPTIONAL) * * @return void */ public function setCapostOffice(\XLite\Module\XC\CanadaPost\Model\Order\PostOffice $office = null) { if (isset($office)) { $office->setOrder($this); } $this->capostOffice = $office; }
/** * {@inheritDoc} */ public function setOrder(\XLite\Model\Order $order = NULL) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'setOrder', array($order)); return parent::setOrder($order); }