1 | <?php |
||
9 | class ComposerScriptRunner |
||
10 | { |
||
11 | /** @var array */ |
||
12 | protected $config = []; |
||
13 | |||
14 | /** @var Builder */ |
||
15 | protected $builder; |
||
16 | |||
17 | /** @var Event */ |
||
18 | protected $event; |
||
19 | |||
20 | /** @var string */ |
||
21 | protected $basePath; |
||
22 | |||
23 | /** |
||
24 | * ComposerScriptRunner constructor. |
||
25 | * |
||
26 | * @throws \InvalidArgumentException |
||
27 | * @param Event $event |
||
28 | */ |
||
29 | public function __construct(Event $event) |
||
36 | |||
37 | /** |
||
38 | * Set a particular config value. |
||
39 | * |
||
40 | * @param string $key |
||
41 | * @param mixed $value |
||
42 | */ |
||
43 | public function set(string $key, $value) |
||
47 | |||
48 | /** |
||
49 | * Get the requested config var. |
||
50 | * |
||
51 | * @param string $key |
||
52 | * @return mixed|null |
||
53 | */ |
||
54 | public function get(string $key) |
||
58 | |||
59 | /** |
||
60 | * @return |string |
||
|
|||
61 | */ |
||
62 | public function getBasePath() |
||
70 | |||
71 | /** |
||
72 | * @param string $basePath |
||
73 | */ |
||
74 | public function setBasePath(string $basePath) |
||
78 | |||
79 | /** |
||
80 | * Get the full path to the env file. |
||
81 | * |
||
82 | * @return mixed|null|string |
||
83 | */ |
||
84 | public function getEnvFile() |
||
95 | |||
96 | /** |
||
97 | * @throws \InvalidArgumentException |
||
98 | */ |
||
99 | protected function populateConfig() |
||
123 | |||
124 | /** |
||
125 | * @throws \InvalidArgumentException |
||
126 | */ |
||
127 | protected function createBuilder() |
||
139 | |||
140 | /** |
||
141 | * Override the Builder. |
||
142 | * |
||
143 | * @param Builder $builder |
||
144 | */ |
||
145 | public function setBuilder(Builder $builder) |
||
149 | |||
150 | /** |
||
151 | * Build the config based on a composer's package.json file. |
||
152 | * |
||
153 | * @throws \InvalidArgumentException |
||
154 | * @param Event $event |
||
155 | */ |
||
156 | public static function build(Event $event) |
||
161 | |||
162 | /** |
||
163 | * Run the builder |
||
164 | */ |
||
165 | public function run() |
||
193 | } |
||
194 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.