1 | <?php |
||
9 | class OptimusGenerateCommand extends Command |
||
10 | { |
||
11 | /** |
||
12 | * The console command name. |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $name = 'hashid:optimus'; |
||
17 | |||
18 | /** |
||
19 | * The console command description. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $description = 'Generate Optimus numbers'; |
||
24 | |||
25 | /** |
||
26 | * Execute the console command. |
||
27 | * |
||
28 | * @return mixed |
||
29 | */ |
||
30 | 1 | public function handle() |
|
37 | |||
38 | /** |
||
39 | * Get "times" option value. |
||
40 | * |
||
41 | * @return int |
||
42 | */ |
||
43 | 1 | protected function getTimes() |
|
49 | |||
50 | /** |
||
51 | * Generate Optimus numbers. |
||
52 | * |
||
53 | * @param int $times |
||
54 | * @return array |
||
55 | */ |
||
56 | 1 | protected function generateOptimusNumbers($times = 1) |
|
66 | |||
67 | /** |
||
68 | * Get the console command options. |
||
69 | * |
||
70 | * @return array |
||
71 | */ |
||
72 | 2 | protected function getOptions() |
|
78 | } |
||
79 |