Total Complexity | 6 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | final class Command extends AbstractGeneratorCommand |
||
12 | { |
||
13 | public function __construct( |
||
14 | #[Required] |
||
15 | private readonly string $prompt = 'Hello', |
||
16 | #[Required] |
||
17 | private readonly string $resultFilePath = 'src/gemini.txt', |
||
18 | #[Required(message: 'A code template must be selected.')] |
||
19 | #[TemplateRule] |
||
20 | protected string $template = 'default', |
||
21 | ) { |
||
22 | parent::__construct($template); |
||
23 | } |
||
24 | |||
25 | public function getResultFilePath(): string |
||
28 | } |
||
29 | |||
30 | public function getPrompt(): string |
||
33 | } |
||
34 | |||
35 | public static function getAttributeLabels(): array |
||
36 | { |
||
37 | return [ |
||
38 | 'resultFilePath' => 'Model namespace', |
||
39 | 'prompt' => 'Text prompt', |
||
40 | 'template' => 'Template', |
||
41 | ]; |
||
42 | } |
||
43 | |||
44 | public static function getHints(): array |
||
49 | ]; |
||
50 | } |
||
51 | |||
52 | public static function getAttributes(): array |
||
61 |