| 1 | <?php |
||
| 9 | class FlushCommand extends Command |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * The console command name. |
||
| 13 | * |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected $name = 'ab:flush'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The console command description. |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $description = 'Clear all A/B testing data.'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Create a new command instance. |
||
| 27 | * |
||
| 28 | * @return void |
||
|
|
|||
| 29 | */ |
||
| 30 | public function __construct() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Execute the console command. |
||
| 37 | * |
||
| 38 | * @return mixed |
||
| 39 | */ |
||
| 40 | public function handle() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Get the console command arguments. |
||
| 54 | * |
||
| 55 | * @return array |
||
| 56 | */ |
||
| 57 | protected function getArguments() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Get the console command options. |
||
| 64 | * |
||
| 65 | * @return array |
||
| 66 | */ |
||
| 67 | protected function getOptions() |
||
| 71 | } |
||
| 72 |
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.