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