1 | <?php |
||
26 | class Help extends Base |
||
27 | { |
||
28 | /** |
||
29 | * @var \Symfony\Component\Console\Command\Command |
||
30 | */ |
||
31 | private $command; |
||
32 | |||
33 | /** |
||
34 | * Configure the command. |
||
35 | */ |
||
36 | protected function configure() |
||
45 | |||
46 | 1 | /** |
|
47 | * Set command to get help for. |
||
48 | * |
||
49 | * @param \Symfony\Component\Console\Command\Command $command |
||
50 | */ |
||
51 | public function setCommand(SymfonyCommand $command) |
||
55 | |||
56 | /** |
||
57 | * Execute the command. |
||
58 | * |
||
59 | * @param \Symfony\Component\Console\Input\InputInterface $input |
||
60 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
||
61 | * @return void |
||
62 | */ |
||
63 | protected function execute(InputInterface $input, OutputInterface $output) |
||
74 | |||
75 | /** |
||
76 | * Return all lines of hel message. |
||
77 | * |
||
78 | * @return array |
||
79 | */ |
||
80 | private function getHelpLines() : array |
||
84 | |||
85 | /** |
||
86 | * Return help rows for version and basic usage. |
||
87 | * |
||
88 | * @return array |
||
89 | */ |
||
90 | private function getVersion() : array |
||
100 | |||
101 | /** |
||
102 | * Return help rows listing all commands. |
||
103 | * |
||
104 | * @return array |
||
105 | */ |
||
106 | private function getCommandList() : array |
||
116 | |||
117 | /** |
||
118 | * Return help rows describing all options. |
||
119 | * |
||
120 | * @return array |
||
121 | */ |
||
122 | private function getOptions() : array |
||
136 | } |
||
137 |