| Total Complexity | 7 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class EnvironmentDependentConfigReaderFactory { |
||
| 10 | private string $environmentName; |
||
| 11 | |||
| 12 | public function __construct( string $environmentName ) { |
||
| 13 | $this->environmentName = $environmentName; |
||
| 14 | } |
||
| 15 | |||
| 16 | public function getConfigReader(): ConfigReader { |
||
| 20 | ); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function getConfigurationPathsForEnvironment( string $configPath ): array { |
||
| 31 | } |
||
| 32 | |||
| 33 | private static function removeNonexistentOptionalPaths( string ...$paths ): array { |
||
| 38 | } |
||
| 39 | |||
| 40 | private static function checkIfPathsExist( string ...$paths ): void { |
||
| 51 |