Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public function __construct( |
||
23 | string $className, |
||
24 | array $relatedEnvVars = [], |
||
25 | int $code = 0, |
||
26 | Throwable $previous = null |
||
27 | ) { |
||
28 | $message = sprintf(static::ERROR_MSG, $className); |
||
29 | |||
30 | if (!empty($relatedEnvVars)) { |
||
31 | $message .= sprintf(static::REQUIRED_CONFIGS, implode(', ', $relatedEnvVars)); |
||
32 | } |
||
33 | |||
34 | parent::__construct($message, $code, $previous); |
||
35 | } |
||
37 |