1 | <?php |
||
15 | class PacmanCommandBuilder implements CommandBuilderInterface |
||
16 | { |
||
17 | /** |
||
18 | * Command action. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $action; |
||
23 | |||
24 | /** |
||
25 | * Option list. |
||
26 | * |
||
27 | * @var string[] |
||
28 | */ |
||
29 | protected $options = []; |
||
30 | |||
31 | /** |
||
32 | * Package list. |
||
33 | * |
||
34 | * @var string[] |
||
35 | */ |
||
36 | protected $packages = []; |
||
37 | |||
38 | /** |
||
39 | * Whether quiet mode is enabled or not. |
||
40 | * |
||
41 | * @var boolean |
||
42 | */ |
||
43 | protected $quiet = false; |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | 5 | public function install(array $packages) |
|
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | 3 | public function update(array $packages = []) |
|
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | 3 | public function uninstall(array $packages) |
|
85 | |||
86 | /** |
||
87 | * {@inheritdoc} |
||
88 | */ |
||
89 | 1 | public function assumeYes() |
|
95 | |||
96 | /** |
||
97 | * {@inheritdoc} |
||
98 | */ |
||
99 | 1 | public function quiet() |
|
105 | |||
106 | /** |
||
107 | * {@inheritdoc} |
||
108 | */ |
||
109 | 9 | public function getCommand() |
|
125 | } |
||
126 |