| 1 | <?php declare(strict_types=1); |
||
| 13 | class ProcessEnvironment |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var ValueProvider[] |
||
| 17 | */ |
||
| 18 | private $constants; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var ValueProvider[] |
||
| 22 | */ |
||
| 23 | private $variables; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var Template[] |
||
| 27 | */ |
||
| 28 | private $templates; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var ValueProvider[] |
||
| 32 | */ |
||
| 33 | private $dotenvVariables; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param ValueProvider[] $constants |
||
| 37 | * @param ValueProvider[] $variables |
||
| 38 | * @param Template[] $templates |
||
| 39 | * @param ValueProvider[] $dotenvVars |
||
| 40 | */ |
||
| 41 | public function __construct(array $constants, array $variables, array $templates, array $dotenvVars) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return ValueProvider[] |
||
| 51 | */ |
||
| 52 | public function getAllValues(): array |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return Template[] |
||
| 63 | */ |
||
| 64 | public function getTemplates(): array |
||
| 68 | |||
| 69 | public function createProcess(string $shellCommand): Process |
||
| 73 | } |
||
| 74 |