Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class RestException extends InshoreBookwhenException |
||
13 | { |
||
14 | /** @var \Exception the thrown exception. */ |
||
15 | private $e; |
||
16 | |||
17 | /** @var \Monolog\Logger the thrown exception. */ |
||
18 | private $logger; |
||
19 | |||
20 | /** |
||
21 | * |
||
22 | * @param \Exception $e |
||
23 | * @param \Monolog\Logger $logger |
||
24 | */ |
||
25 | public function __construct($e, $logger) |
||
26 | { |
||
27 | $this->e = $e; |
||
28 | $this->logger = $logger; |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * |
||
33 | * @return string the error messsage. |
||
34 | */ |
||
35 | public function errorMessage(): string |
||
40 | } |
||
41 | } |
||
44 |