| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2.0185 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | 9 | public function __construct(PathResolverInterface $pathResolver, FileNameResolverInterface $fileNameResolver) |
|
| 30 | { |
||
| 31 | 9 | if (!class_exists(\Dotenv\Dotenv::class)) { |
|
| 32 | throw EnvFileReaderException::becauseAdapterCanNotBeCreated(__CLASS__, \Dotenv\Dotenv::class); |
||
| 33 | } |
||
| 34 | 9 | $this->pathResolver = $pathResolver; |
|
| 35 | 9 | $this->fileNameResolver = $fileNameResolver; |
|
| 36 | 9 | $this->isEnvFileAlreadyLoaded = false; |
|
| 37 | 9 | } |
|
| 57 |