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