1 | <?php |
||
12 | class PackageInstaller extends Command |
||
13 | { |
||
14 | |||
15 | private $directory; |
||
16 | |||
17 | private $options; |
||
18 | |||
19 | |||
20 | /** |
||
21 | * Gets working directory. |
||
22 | * @return string |
||
23 | */ |
||
24 | public function getDirectory() |
||
28 | |||
29 | |||
30 | /** |
||
31 | * Sets working directory. System will switch to this directory before running npm. |
||
32 | * @param string $directory |
||
33 | */ |
||
34 | 2 | public function setDirectory($directory) |
|
38 | |||
39 | |||
40 | /** |
||
41 | * @return array|NULL |
||
42 | */ |
||
43 | 2 | public function getOptions() |
|
47 | |||
48 | |||
49 | /** |
||
50 | * @param array|NULL $options |
||
51 | */ |
||
52 | 2 | public function setOptions(array $options = NULL) |
|
56 | |||
57 | |||
58 | 2 | public function execute() |
|
73 | |||
74 | } |