1 | <?php |
||
11 | class DotEnvLoader |
||
12 | { |
||
13 | /** |
||
14 | * @param string $name |
||
15 | * @return string |
||
16 | */ |
||
17 | 3 | public static function getEnvironmentVariable($name) |
|
23 | |||
24 | /** |
||
25 | * @param string $name |
||
26 | * @return string |
||
27 | */ |
||
28 | 2 | public static function hasEnvironmentVariable($name) |
|
32 | |||
33 | /** |
||
34 | * @param string $constant |
||
35 | * @param string $file |
||
36 | * @return mixed[] |
||
37 | * @throws \Abacaphiliac\ZendPhpDotEnv\Exception\InvalidConstantPathException |
||
38 | */ |
||
39 | 1 | public static function loadFromConstant($constant, $file) |
|
47 | |||
48 | /** |
||
49 | * @param string $variable |
||
50 | * @param string $file |
||
51 | * @return mixed[] |
||
52 | * @throws \Abacaphiliac\ZendPhpDotEnv\Exception\InvalidEnvironmentVariablePathException |
||
53 | */ |
||
54 | 1 | public static function loadFromEnvironmentVariable($variable, $file) |
|
62 | |||
63 | /** |
||
64 | * @param string $file |
||
65 | * @return mixed[] |
||
66 | * @throws \Abacaphiliac\ZendPhpDotEnv\Exception\InvalidWorkingDirectoryPathException |
||
67 | */ |
||
68 | 1 | public static function loadFromWorkingDirectory($file) |
|
76 | } |
||
77 |