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