| 1 | <?php |
||
| 8 | class Export extends Command |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The name and signature of the console command. |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $signature = 'export |
||
| 16 | {--ci : No progress bar (eg for CI)}'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The console command description. |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $description = 'Export accounts, groups and categories at once'; |
||
| 24 | |||
| 25 | protected $commands = [ |
||
| 26 | 'export:accounts', |
||
| 27 | 'export:groups', |
||
| 28 | 'export:categories' |
||
| 29 | ]; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Create a new command instance. |
||
| 33 | * |
||
| 34 | * @return void |
||
|
|
|||
| 35 | */ |
||
| 36 | public function __construct() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Execute the console command. |
||
| 43 | * |
||
| 44 | * @return mixed |
||
| 45 | */ |
||
| 46 | public function handle() |
||
| 54 | } |
||
| 55 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.