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 | 8 | public function __construct(PathResolverInterface $pathResolver, FileNameResolverInterface $fileNameResolver) |
|
30 | { |
||
31 | 8 | if (!class_exists(\Dotenv\Dotenv::class)) { |
|
32 | throw EnvFileReaderException::becauseAdapterCanNotBeCreated(__CLASS__, \Dotenv\Dotenv::class); |
||
33 | } |
||
34 | 8 | $this->pathResolver = $pathResolver; |
|
35 | 8 | $this->fileNameResolver = $fileNameResolver; |
|
36 | 8 | $this->isEnvFileAlreadyLoaded = false; |
|
37 | 8 | } |
|
57 |