Total Complexity | 2 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class MakeTacticianCommand extends Command |
||
12 | { |
||
13 | /** |
||
14 | * The name and signature of the console command. |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $signature = 'make:tactician {name}'; |
||
19 | |||
20 | /** |
||
21 | * The console command description. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $description = 'Generate Tactician Command and Handler'; |
||
26 | |||
27 | /** |
||
28 | * Execute the console command. |
||
29 | * |
||
30 | * @return mixed |
||
31 | */ |
||
32 | public function handle() |
||
33 | { |
||
34 | $this->call('make:tactician:command', $this->getNameArgument()); |
||
35 | $this->call('make:tactician:handler', $this->getNameArgument()); |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @return array |
||
40 | */ |
||
41 | public function getNameArgument() |
||
44 | } |
||
45 | } |
||
46 |