coupon_helper = $coupon_helper; $this->coupon_syncer = $coupon_syncer; $this->wc = $wc; $this->merchant_center = $merchant_center; parent::__construct( $action_scheduler, $monitor ); } /** * Can the job be scheduled. * * @param array|null $args * * @return bool Returns true if the job can be scheduled. */ public function can_schedule( $args = [] ): bool { return ! $this->is_running( $args ) && $this->merchant_center->should_push(); } }