| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function __construct( |
||
| 17 | /** |
||
| 18 | * @var string A class name from failed attempt of search in the container. |
||
| 19 | */ |
||
| 20 | string $className, |
||
| 21 | /** |
||
| 22 | * @var int The Exception code. |
||
| 23 | */ |
||
| 24 | int $code = 0, |
||
| 25 | /** |
||
| 26 | * @var Throwable|null The previous throwable used for the exception chaining. |
||
| 27 | */ |
||
| 28 | ?Throwable $previous = null, |
||
| 29 | ) { |
||
| 30 | parent::__construct( |
||
| 31 | sprintf( |
||
| 32 | 'Handler was not found for "%s" rule or unresolved "%s" class.', |
||
| 33 | $className, |
||
| 34 | $className, |
||
| 35 | ), |
||
| 36 | $code, |
||
| 37 | $previous, |
||
| 38 | ); |
||
| 41 |