Total Complexity | 6 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | final class Error extends Model |
||
8 | { |
||
9 | 2 | public function getId(): string |
|
10 | { |
||
11 | 2 | return $this->data['id'] ?? ''; |
|
12 | } |
||
13 | |||
14 | 9 | public function getMessage(): string |
|
15 | { |
||
16 | 9 | return $this->data['message'] ?? ''; |
|
17 | } |
||
18 | |||
19 | 2 | public function getDetailedError(): string |
|
20 | { |
||
21 | 2 | return $this->data['detailed_error'] ?? ''; |
|
22 | } |
||
23 | |||
24 | 2 | public function getStatusCode(): int |
|
25 | { |
||
26 | 2 | return $this->data['status_code'] ?? 0; |
|
27 | } |
||
28 | |||
29 | 2 | public function getRequestId(): string |
|
32 | } |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | 9 | protected static function getFields(): array |
|
40 | } |
||
41 | } |
||
42 |