1 | <?php |
||
14 | class CommandHelper |
||
15 | { |
||
16 | const OUTPUT_LEVEL_SPACE = ' '; |
||
17 | |||
18 | /** @var InputInterface */ |
||
19 | private $input; |
||
20 | /** @var OutputInterface */ |
||
21 | private $output; |
||
22 | /** @var QuestionHelper */ |
||
23 | private $questionHelper; |
||
24 | /** @var TemplateHelper */ |
||
25 | private $templateHelper; |
||
26 | /** @var Filesystem */ |
||
27 | private $fileSystem; |
||
28 | /** @var Template[] */ |
||
29 | private $templateList; |
||
30 | /** @var string */ |
||
31 | private $rootPath; |
||
32 | |||
33 | /** |
||
34 | * @param InputInterface $input |
||
35 | * @param OutputInterface $output |
||
36 | * @param TemplateHelper $templateHelper |
||
37 | * @param QuestionHelper $questionHelper |
||
38 | * @param Template[] $templateList |
||
39 | * @param string $rootPath |
||
40 | */ |
||
41 | public function __construct( |
||
60 | |||
61 | /** |
||
62 | * @return Template[] |
||
63 | */ |
||
64 | public function getTemplateList() |
||
68 | |||
69 | /** |
||
70 | * @param Template $template |
||
71 | * @param string $currentType |
||
72 | */ |
||
73 | public function displayHeader(Template $template, $currentType) |
||
87 | |||
88 | /** |
||
89 | * @param string $message |
||
90 | * @param int $level |
||
91 | */ |
||
92 | public function display($message, $level = 0, $ln = true) |
||
105 | |||
106 | /** |
||
107 | * @param Template $template |
||
108 | * |
||
109 | * @return string |
||
110 | */ |
||
111 | public function resolveCurrentType(Template $template) |
||
117 | |||
118 | |||
119 | |||
120 | /** |
||
121 | * @param Template $template |
||
122 | * |
||
123 | * @return string |
||
124 | */ |
||
125 | public function resolveTargetPath(Template $template) |
||
129 | |||
130 | /** |
||
131 | * @param Question $question |
||
132 | * |
||
133 | * @return string |
||
134 | */ |
||
135 | public function ask(Question $question) |
||
139 | |||
140 | /** |
||
141 | * @param Template $template |
||
142 | * |
||
143 | * @return bool |
||
144 | */ |
||
145 | public function targetExist(Template $template) |
||
149 | |||
150 | /** |
||
151 | * @param Template $template |
||
152 | */ |
||
153 | public function dump(Template $template) |
||
161 | } |
||
162 |