| 1 | <?php |
||
| 5 | class Env |
||
| 6 | { |
||
| 7 | protected $env; |
||
| 8 | |||
| 9 | public function __construct($env) |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Apply a set of environment variables; return the original |
||
| 16 | * value of any value that is set, to avoid polluting the environment. |
||
| 17 | * |
||
| 18 | * @return Env |
||
| 19 | */ |
||
| 20 | public function apply() |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Set or un-set one environment variable |
||
| 32 | * |
||
| 33 | * @param string $key The environment variable to set or unset |
||
| 34 | * @param mixed $value THe value to set the variable to, or false to unset. |
||
| 35 | */ |
||
| 36 | protected static function setEnvValue($key, $value) |
||
| 44 | } |
||
| 45 |