Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function __construct(string $dictionaryName, array $knowns = [], ?\Exception $exception = null) |
||
13 | { |
||
14 | 3 | $message = \sprintf('The dictionary "%s" has not been found in the registry.', $dictionaryName); |
|
15 | |||
16 | 3 | if ([] !== $knowns) { |
|
17 | $message .= \sprintf(' Known dictionaries are: "%s".', implode('", "', $knowns)); |
||
18 | 3 | } |
|
19 | 1 | ||
20 | parent::__construct($message, 0, $exception); |
||
21 | } |
||
23 |