File: D:/HostingSpaces/SBogers10/topswtwmobile.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],
];
}
}