Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class MakeIntentCommand extends GeneratorCommand |
||
10 | { |
||
11 | protected $name = 'fondbot:make:intent'; |
||
12 | protected $description = 'Create a new intent class'; |
||
13 | protected $type = 'Intent'; |
||
14 | |||
15 | /** {@inheritdoc} */ |
||
16 | protected function getStub(): string |
||
17 | { |
||
18 | return __DIR__.'/../../resources/stubs/Intent.stub'; |
||
19 | } |
||
20 | |||
21 | /** {@inheritdoc} */ |
||
22 | protected function qualifyClass($name): string |
||
25 | } |
||
26 | |||
27 | /** {@inheritdoc} */ |
||
28 | protected function getPath($name): string |
||
31 | } |
||
32 | |||
33 | /** {@inheritdoc} */ |
||
34 | protected function getNamespace($name): string |
||
39 |