1 | <?php |
||
33 | class GenericInlineConfigCommand extends Command implements InlineConfigCommandInterface |
||
34 | { |
||
35 | use ConfigurableTrait, |
||
36 | HasInputTrait, |
||
37 | HasOutputTrait, |
||
38 | HasWriterTrait, |
||
39 | HasContainerTrait; |
||
40 | |||
41 | /** |
||
42 | * CONFIG |
||
43 | */ |
||
44 | public const NAME = 'inline-config-command'; |
||
45 | public const DESCRIPTION = 'generic inline config command'; |
||
46 | public const HIDDEN = false; |
||
47 | public const USAGES = []; |
||
48 | public const HELP = ''; |
||
49 | public const ARGUMENTS = []; |
||
50 | public const OPTIONS = []; |
||
51 | |||
52 | /** |
||
53 | * GenericInlineConfigCommand constructor. |
||
54 | * @param WriterInterface $writer |
||
55 | * @param ConfiguratorInterface $configurator |
||
56 | * @param array|null $config |
||
57 | */ |
||
58 | public function __construct(WriterInterface $writer, ConfiguratorInterface $configurator, ?array $config = []) |
||
70 | |||
71 | protected function configure() |
||
77 | |||
78 | /** |
||
79 | * @param string[] $usages |
||
80 | */ |
||
81 | public function setUsages(array $usages = []) |
||
87 | |||
88 | /** |
||
89 | * @return array |
||
90 | */ |
||
91 | public function getConfig(): array |
||
102 | } |
||
103 | |||
104 |