| 1 | <?php namespace App\Modules\V1\Notifications\Console\Commands; |
||
| 5 | class MakeNotificationsCommand extends GeneratorCommand |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The name and signature of the console command. |
||
| 9 | * |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | protected $signature = 'make:module:notification |
||
| 13 | {name : The name of the notification class.}'; |
||
| 14 | /** |
||
| 15 | * The console command description. |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $description = 'Create a new module notification class'; |
||
| 20 | /** |
||
| 21 | * String to store the command type. |
||
| 22 | * |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $type = 'Module notification'; |
||
| 26 | /** |
||
| 27 | * Get the stub file for the generator. |
||
| 28 | * |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | protected function getStub() |
||
| 35 | /** |
||
| 36 | * Get the destination class path. |
||
| 37 | * |
||
| 38 | * @param string $name |
||
| 39 | * |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | protected function getPath($name) |
||
| 46 | /** |
||
| 47 | * Parse the name and format according to the root namespace. |
||
| 48 | * |
||
| 49 | * @param string $name |
||
| 50 | * |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | protected function qualifyClass($name) |
||
| 57 | /** |
||
| 58 | * Replace namespace in notification stub. |
||
| 59 | * |
||
| 60 | * @param string $name |
||
| 61 | * |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | protected function getNamespace($name) |
||
| 68 | } |