/** * Check - is Canada Post post office is applicable for this order or not * * @param \XLite\Module\XC\CanadaPost\Model\Order\PostOffice $office Canada Post post office object * * @return boolean */ public function isCapostOfficeApplicable(\XLite\Module\XC\CanadaPost\Model\Order\PostOffice $office) { return $this->isSelectedMethodSupportDeliveryToPO() && $this->isCapostOfficeAvailable($office->getOfficeId()); }
/** * {@inheritDoc} */ public function getOfficeId() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getOfficeId', array()); return parent::getOfficeId(); }