woocommerce_segment = $woocommerce_segment; $this->woocommerce_helper = $woocommerce_helper; parent::__construct(); } public function checkProcessingRequirements() { return $this->woocommerce_helper->isWooCommerceActive(); } public function processTaskStrategy(ScheduledTask $task, $timer) { $this->woocommerce_segment->synchronizeCustomers(); return true; } }