1 | <?php |
||
12 | class Manager |
||
13 | { |
||
14 | /** @var Assembler */ |
||
15 | private $assembler; |
||
16 | |||
17 | /** @var Autocomplete */ |
||
18 | private $autocomplete; |
||
19 | |||
20 | /** @var array */ |
||
21 | private $configuration; |
||
22 | |||
23 | /** @var string */ |
||
24 | private $prompt; |
||
25 | |||
26 | /** @var ReadLine */ |
||
27 | private $readLine; |
||
28 | |||
29 | /** |
||
30 | * @param Assembler $assembler |
||
31 | */ |
||
32 | public function setAssembler(Assembler $assembler) |
||
36 | |||
37 | /** |
||
38 | * @param Autocomplete $autocomplete |
||
39 | * @return $this |
||
40 | */ |
||
41 | public function setAutocomplete(Autocomplete $autocomplete) |
||
47 | |||
48 | /** |
||
49 | * @param array $configuration |
||
50 | * @return $this |
||
51 | */ |
||
52 | public function setConfiguration(array $configuration) |
||
58 | |||
59 | /** |
||
60 | * @param string $prompt |
||
61 | * @return $this |
||
62 | */ |
||
63 | public function setPrompt($prompt) |
||
69 | |||
70 | /** |
||
71 | * @param ReadLine $readLine |
||
72 | * @return $this |
||
73 | */ |
||
74 | public function setReadLine(ReadLine $readLine) |
||
80 | |||
81 | public function run() |
||
102 | |||
103 | /** |
||
104 | * @param Autocomplete $autocomplete |
||
105 | */ |
||
106 | private function registerAutocomplete(Autocomplete $autocomplete) |
||
110 | |||
111 | /** |
||
112 | * @throws RuntimeException |
||
113 | */ |
||
114 | private function validateEnvironment() |
||
120 | } |