1 | <?php |
||
5 | class MakeHandlerCommand extends HiveGeneratorCommand |
||
6 | { |
||
7 | /** |
||
8 | * The console command name. |
||
9 | * |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $name = 'hive:handler'; |
||
13 | |||
14 | /** |
||
15 | * The console command description. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $description = 'Create a new Hive handler class.'; |
||
20 | |||
21 | /** |
||
22 | * The type of class being generated. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $type = 'Handler'; |
||
27 | |||
28 | /** |
||
29 | * Execute the console command. |
||
30 | * |
||
31 | * @return void |
||
32 | */ |
||
33 | public function fire() |
||
37 | |||
38 | /** |
||
39 | * Get the stub file for the generator. |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | protected function getStub() |
||
47 | |||
48 | /** |
||
49 | * Get the default namespace for the class. |
||
50 | * |
||
51 | * @param string $rootNamespace |
||
52 | * |
||
53 | * @return string |
||
54 | */ |
||
55 | protected function getDefaultNamespace($rootNamespace) |
||
59 | |||
60 | /** |
||
61 | * Get the console command options. |
||
62 | * |
||
63 | * @return array |
||
64 | */ |
||
65 | protected function getOptions() |
||
71 | } |
||
72 |