HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/topswtw.komma.pro/app/KommaApp/Shop/Cron/TopsCronHandler.php
<?php namespace KommaApp\Shop\Cron;

use Illuminate\Console\Command;
use KommaApp\Shop\Customers\CustomerNotifierService;

class TopsCronHandler extends Command {

    /**
     * @var CustomerNotifierService
     */
    protected $customerNotifierService;

	/**
	 * The console command name.
	 *
	 * @var string
	 */
	protected $name = 'cron:tops';

	/**
	 * The console command description.
	 *
	 * @var string
	 */
	protected $description = 'Cron job handler for TOPS WTW-Filters.';

	/**
	 * Create a new command instance.
	 *
	 * @return void
	 */
	public function __construct(CustomerNotifierService $customerNotifierService)
	{
        $this->customerNotifierService = $customerNotifierService;
		parent::__construct();
	}

	/**
	 * Execute the console command.
	 *
	 * @return mixed
	 */
	public function fire()
	{
        //$this->info('Customers with open payments have been notified.');
        $this->customerNotifierService->notify();
	}

	/**
	 * Get the console command arguments.
	 *
	 * @return array
	 */
	protected function getArguments()
	{
		return [
			//['example', InputArgument::REQUIRED, 'An example argument.'],
		];
	}

	/**
	 * Get the console command options.
	 *
	 * @return array
	 */
	protected function getOptions()
	{
		return [
			//['example', null, InputOption::VALUE_OPTIONAL, 'An example option.', null],
		];
	}

}