Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
23 | 1 | public function __construct(string $channel, $definition, int $code = 0, ?Throwable $previous = null) |
|
24 | { |
||
25 | 1 | $adapterClass = AdapterInterface::class; |
|
26 | 1 | $realType = get_debug_type($definition); |
|
27 | 1 | $message = "Channel \"$channel\" is not properly configured: definition must return $adapterClass, $realType returned"; |
|
28 | |||
29 | 1 | $this->channel = $channel; |
|
30 | 1 | parent::__construct($message, $code, $previous); |
|
31 | } |
||
48 |