Total Complexity | 7 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class ServiceExceptionFactory |
||
10 | { |
||
11 | /** |
||
12 | * @var \Psr\Http\Message\ResponseInterface |
||
13 | */ |
||
14 | protected $response; |
||
15 | |||
16 | /** |
||
17 | * @param \Psr\Http\Message\ResponseInterface $response |
||
18 | */ |
||
19 | public function __construct(ResponseInterface $response) |
||
20 | { |
||
21 | $this->response = $response; |
||
22 | } |
||
23 | |||
24 | public function make(): Exception |
||
25 | { |
||
26 | return $this->exception(); |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @return void |
||
31 | * |
||
32 | * @throws \Honeybadger\Exceptions\ServiceException |
||
33 | */ |
||
34 | private function exception(): void |
||
53 | } |
||
54 | } |
||
55 |