| Total Complexity | 4 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class Environment |
||
| 9 | { |
||
| 10 | public const ENV_ENVIRONMENT = 'APPLICATION_ENV'; |
||
| 11 | public const ENV_SCOPE = 'APPLICATION_SCOPE'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @return string |
||
| 15 | */ |
||
| 16 | 10 | public function getEnvironment() : string |
|
| 17 | { |
||
| 18 | 10 | return getenv(self::ENV_ENVIRONMENT, true) ?: 'production'; |
|
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @return string |
||
| 23 | */ |
||
| 24 | 8 | public function getScope() : string |
|
| 27 | } |
||
| 28 | } |
||
| 29 |