| 1 | <?php |
||
| 12 | class MakeTacticianHandlerCommand extends GeneratorCommand |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * The console command name. |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $name = 'make:tactician:handler'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * The console command description. |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $description = 'Create a new Tactician Command Handler'; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Get the stub file for the generator. |
||
| 30 | * |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | 4 | protected function getStub() |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Build the class with the given name. |
||
| 40 | * |
||
| 41 | * @param string $name |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | 4 | protected function buildClass($name) |
|
| 48 | |||
| 49 | /** |
||
| 50 | * Get the default namespace for the class. |
||
| 51 | * |
||
| 52 | * @param string $rootNamespace |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | 4 | protected function getDefaultNamespace($rootNamespace) |
|
| 59 | |||
| 60 | /** |
||
| 61 | * Get the destination class path. |
||
| 62 | * |
||
| 63 | * @param string $name |
||
| 64 | * @return string |
||
| 65 | */ |
||
| 66 | 4 | protected function getPath($name) |
|
| 70 | } |
||
| 71 |