mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
69 lines
1.1 KiB
PHP
69 lines
1.1 KiB
PHP
|
<?php
|
||
|
|
||
|
use Illuminate\Console\Command;
|
||
|
use Symfony\Component\Console\Input\InputOption;
|
||
|
use Symfony\Component\Console\Input\InputArgument;
|
||
|
|
||
|
class SendRecurringInvoices extends Command {
|
||
|
|
||
|
/**
|
||
|
* The console command name.
|
||
|
*
|
||
|
* @var string
|
||
|
*/
|
||
|
protected $name = 'ninja:send-invoices';
|
||
|
|
||
|
/**
|
||
|
* The console command description.
|
||
|
*
|
||
|
* @var string
|
||
|
*/
|
||
|
protected $description = 'Send recurring invoices';
|
||
|
|
||
|
/**
|
||
|
* Create a new command instance.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function __construct()
|
||
|
{
|
||
|
parent::__construct();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Execute the console command.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function fire()
|
||
|
{
|
||
|
$this->info('Running SendRecurringInvoices...');
|
||
|
|
||
|
$this->info('Done');
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Get the console command arguments.
|
||
|
*
|
||
|
* @return array
|
||
|
*/
|
||
|
protected function getArguments()
|
||
|
{
|
||
|
return array(
|
||
|
//array('example', InputArgument::REQUIRED, 'An example argument.'),
|
||
|
);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Get the console command options.
|
||
|
*
|
||
|
* @return array
|
||
|
*/
|
||
|
protected function getOptions()
|
||
|
{
|
||
|
return array(
|
||
|
//array('example', null, InputOption::VALUE_OPTIONAL, 'An example option.', null),
|
||
|
);
|
||
|
}
|
||
|
|
||
|
}
|