Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
6 / 6 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| IndexNotFoundException | |
100.00% |
6 / 6 |
|
100.00% |
1 / 1 |
2 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
6 / 6 |
|
100.00% |
1 / 1 |
2 | |||
| 1 | <?php |
| 2 | namespace Apie\Core\Exceptions; |
| 3 | |
| 4 | final class IndexNotFoundException extends ApieException |
| 5 | { |
| 6 | public function __construct(string|int|null $index) |
| 7 | { |
| 8 | parent::__construct( |
| 9 | sprintf( |
| 10 | "Array contains no item with index '%s'", |
| 11 | $index === null ? '(null)' : $index |
| 12 | ) |
| 13 | ); |
| 14 | } |
| 15 | } |