/** * @param HeadAPI $api * @param ShopSettings $settings */ public function __construct($api, $settings) { $this->api = $api; $this->defaultVat = $settings->getShopDefaultVat(); }
/** * @return Mailer */ protected function getMailer() { return $this->settings->getMailer(); }
/** * @param ShopSettings $settings * @param Translator $i18n */ public function __construct($settings, $i18n) { $this->i18n = $i18n; $this->settings = $settings; $this->currency = $settings->getShopCurrencyCode(); }
/** * @param array $params * * @return string */ protected function getCurrentAbsoluteUrl(array $params) { return $this->settings->getCurrentAbsoluteUrl($params); }
/** * @param Unit $unit * @param ShopSettings $settings * @param Translator $i18n * * @return CheckoutFrom */ protected function createCheckoutForm($unit, $settings, $i18n) { $checkout = new CheckoutFrom('CHECKOUT_' . $unit->getId(), new SessionStore(), $i18n, $settings->getShippingCountries(), $settings->getPaymentMethodsAsOptions($i18n), $settings->getTosLink()); return $checkout; }