| Total Complexity | 1 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class PermissionMakeCommand extends ClassGeneratorCommand |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The console command name. |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $name = 'larapi:make:permission'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The console command description. |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $description = 'Create a new permission interface for the specified module'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * The name of the generated resource. |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | protected $generatorName = 'permission'; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * The stub name. |
||
| 35 | * |
||
| 36 | * @var string |
||
| 37 | */ |
||
| 38 | protected $stub = 'permission.stub'; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * The file path. |
||
| 42 | * |
||
| 43 | * @var string |
||
| 44 | */ |
||
| 45 | protected $filePath = '/Permissions'; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * The event that will fire when the file is created. |
||
| 49 | * |
||
| 50 | * @var string |
||
| 51 | */ |
||
| 52 | protected $event = PermissionGeneratedEvent::class; |
||
| 53 | |||
| 54 | protected function stubOptions(): array |
||
| 64 |