helper = $helper; } /** * Execute cron method */ public function execute() { if ($this->helper->getNetSuiteIsEnabled() && $this->helper->getNetSuiteOrderPushEnabled()) { $orderCollection = $this->helper->getOrderCollection(); // if ($orderCollection) { $this->pushOrders($orderCollection); // } } return true; } /** * call curl method to push order */ public function pushOrders($ordersJsonData) { $this->helper->pushCurlData($ordersJsonData); } }