1 | <?php |
||
13 | class ConsoleUserInteraction implements UserInteraction |
||
14 | { |
||
15 | /** |
||
16 | * @var OutputInterface |
||
17 | */ |
||
18 | private $output; |
||
19 | |||
20 | /** |
||
21 | * @var InputInterface |
||
22 | */ |
||
23 | private $input; |
||
24 | |||
25 | /** |
||
26 | * This method is called when a console command event is fired. |
||
27 | * |
||
28 | * @param ConsoleCommandEvent $event |
||
29 | */ |
||
30 | public function onCommand(ConsoleCommandEvent $event) |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function writeTitle($name) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function write($string) |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function ask(Question $question) |
||
63 | |||
64 | /** |
||
65 | * @throws \RuntimeException |
||
66 | * |
||
67 | * @return InputInterface |
||
68 | */ |
||
69 | private function getInput() |
||
77 | |||
78 | /** |
||
79 | * @throws \RuntimeException |
||
80 | * |
||
81 | * @return OutputInterface |
||
82 | */ |
||
83 | public function getOutput() |
||
91 | } |
||
92 |