| 1 | <?php |
||
| 9 | class MakeAnonymizerCommand extends GeneratorCommand |
||
| 10 | {
|
||
| 11 | /** |
||
| 12 | * The console command name. |
||
| 13 | * |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected $name = 'make:anonymizer'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The console command description. |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $description = 'Create a new anonymizer class'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * The type of class being generated. |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | protected $type = 'Anonymizer'; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Execute the console command. |
||
| 34 | * |
||
| 35 | * @return void |
||
| 36 | */ |
||
| 37 | public function handle() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Get the stub file for the generator. |
||
| 44 | * |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | protected function getStub() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Get the destination class path. |
||
| 54 | * |
||
| 55 | * @param string $name |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | protected function getPath($name) |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Parse the class name and format according to the root namespace. |
||
| 65 | * |
||
| 66 | * @param string $name |
||
| 67 | * @return string |
||
| 68 | */ |
||
| 69 | protected function qualifyClass($name) |
||
| 73 | } |
||
| 74 |