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