/** * Returns an singleton instance of this class * * @param object $config * @param object $args * @return */ public static function getInstance($config, $args) { if (self::$instance == null) { self::$instance = new OrderDetailsManager($config, $args); } return self::$instance; }
private function initManagers() { $this->itemManager = ItemManager::getInstance($this->config, $this->args); $this->customerCartManager = CustomerCartManager::getInstance($this->config, $this->args); $this->ordersManager = OrdersManager::getInstance($this->config, $this->args); $this->bundleItemsManager = BundleItemsManager::getInstance($this->config, $this->args); $this->specialFeesManager = SpecialFeesManager::getInstance($this->config, $this->args); $this->orderDetailsManager = OrderDetailsManager::getInstance($this->config, $this->args); $this->checkoutManager = CheckoutManager::getInstance($this->config, $this->args); }