Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class ErrorResponse |
||
9 | { |
||
10 | private Response $response; |
||
11 | |||
12 | /** |
||
13 | * @var bool |
||
14 | */ |
||
15 | public $success = false; |
||
16 | |||
17 | /** |
||
18 | * @var Collection|array |
||
19 | */ |
||
20 | public $errors = []; |
||
21 | |||
22 | 4 | public function __construct(Response $response) |
|
23 | { |
||
24 | 4 | $this->response = $response; |
|
25 | 4 | $this->handle(); |
|
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return bool |
||
30 | */ |
||
31 | 4 | private function handle() |
|
45 | } |
||
46 | } |
||
48 |