| Total Complexity | 3 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class StubResolveException extends \RuntimeException implements ThrowableResponseInterface |
||
| 16 | { |
||
| 17 | protected $stub; |
||
| 18 | /** |
||
| 19 | * @var ResponseFactoryInterface |
||
| 20 | */ |
||
| 21 | protected $factory; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * StubResolveException constructor. |
||
| 25 | * |
||
| 26 | * @param mixed $stub The problematic stub. |
||
| 27 | * @param ResponseFactoryInterface $factory Response factory used to create not found response. |
||
| 28 | * @param Throwable|null $previous Previous exception. |
||
| 29 | * @param string $message Exception message. |
||
| 30 | * @param integer $code Exception code. |
||
| 31 | */ |
||
| 32 | 1 | public function __construct( |
|
| 42 | 1 | } |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @return mixed |
||
| 46 | */ |
||
| 47 | 1 | public function getStub() |
|
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return ResponseInterface |
||
| 54 | */ |
||
| 55 | 1 | public function getResponse(): ResponseInterface |
|
| 63 |