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