/** * @param Models\Customer\Group $group * @return Struct\Customer\Group */ public function convertCustomerGroup(Models\Customer\Group $group) { $customerGroup = new Struct\Customer\Group(); $customerGroup->setKey($group->getKey()); $customerGroup->setUseDiscount($group->getMode()); $customerGroup->setId($group->getId()); $customerGroup->setPercentageDiscount($group->getDiscount()); $customerGroup->setDisplayGrossPrices($group->getTax()); $customerGroup->setMinimumOrderValue($group->getMinimumOrder()); $customerGroup->setSurcharge($group->getMinimumOrderSurcharge()); return $customerGroup; }
/** * {@inheritDoc} */ public function getMinimumOrder() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getMinimumOrder', array()); return parent::getMinimumOrder(); }