| Total Complexity | 2 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class ServiceNotRegisteredException extends \RuntimeException implements NotFoundExceptionInterface |
||
| 17 | { |
||
| 18 | private string $serviceId; |
||
| 19 | |||
| 20 | 2 | public function __construct(string $serviceId, int $code = 0, \Throwable $previous = null) |
|
| 21 | { |
||
| 22 | 2 | $this->serviceId = $serviceId; |
|
| 23 | |||
| 24 | 2 | parent::__construct(sprintf('Service "%s" not registered.', $this->serviceId), $code, $previous); |
|
| 25 | } |
||
| 26 | |||
| 27 | 1 | public function getServiceId(): string |
|
| 30 | } |
||
| 31 | } |
||
| 32 |