1 | <?php |
||
13 | class CommandProcessor |
||
14 | { |
||
15 | const OUTPUT_LEVEL_SPACE = ' '; |
||
16 | |||
17 | /** @var InputInterface */ |
||
18 | private $input; |
||
19 | /** @var OutputInterface */ |
||
20 | private $output; |
||
21 | /** @var QuestionHelper */ |
||
22 | private $questionHelper; |
||
23 | /** @var Template[] */ |
||
24 | private $templateList; |
||
25 | |||
26 | /** |
||
27 | * @param QuestionHelper $questionHelper |
||
28 | * @param InputInterface $input |
||
29 | * @param OutputInterface $output |
||
30 | * @param Template[] $templateList |
||
31 | */ |
||
32 | public function __construct( |
||
43 | |||
44 | /** |
||
45 | * @return Template[] |
||
46 | */ |
||
47 | public function getTemplateList() |
||
51 | |||
52 | /** |
||
53 | * @param Template $template |
||
54 | * @param string $currentType |
||
55 | */ |
||
56 | public function displayHeader(Template $template, $currentType) |
||
70 | |||
71 | /** |
||
72 | * @param string $message |
||
73 | * @param int $level |
||
74 | */ |
||
75 | public function display($message, $level = 0, $ln = true) |
||
88 | |||
89 | /** |
||
90 | * @param Template $template |
||
91 | * |
||
92 | * @return string |
||
93 | */ |
||
94 | public function resolveCurrentType(Template $template) |
||
100 | |||
101 | /** |
||
102 | * @param Question $question |
||
103 | * |
||
104 | * @return string |
||
105 | */ |
||
106 | public function ask(Question $question) |
||
110 | } |
||
111 |