Lines
100.00%
2 / 2
Methods
100.00%
1 / 1
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | 100.00% | 2 / 2 | 100.00% | 1 / 1 | 1 | ||
| 16 | class NotFoundException extends RuntimeException implements NotFoundExceptionInterface | |
| 17 | { | |
| 18 | /** | |
| 19 | * The identifier that could not be resolved. | |
| 20 | */ | |
| 21 | public private(set) string $id; | |
| 22 | ||
| 23 | /** | |
| 24 | * @param string $id The identifier that could not be resolved | |
| 25 | */ | |
| 26 | public function __construct(string $id) | |
| 27 | { | |
| 28 | $this->id = $id; | |
| 29 | parent::__construct(sprintf('No service is registered for identifier "%s".', $id)); | |
| 30 | } | |
| 31 | } |