Total Complexity | 4 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class VerifyResponse { |
||
11 | |||
12 | |||
13 | /** |
||
14 | * @var String |
||
15 | */ |
||
16 | public string $Status; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | public string $Message; |
||
22 | |||
23 | /** |
||
24 | * @var VerifyData| |
||
25 | */ |
||
26 | public VerifyData $Data; |
||
27 | |||
28 | public function __construct($response) { |
||
29 | $this->Status = $response['status']; |
||
30 | $this->Message = $response['message']; |
||
31 | $this->Data = new VerifyData($response['data']); |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return VerifyData |
||
36 | */ |
||
37 | public function getData(): VerifyData |
||
38 | { |
||
39 | return $this->Data; |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @return string |
||
44 | */ |
||
45 | public function getMessage(): string |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * @return String |
||
52 | */ |
||
53 | public function getStatus(): string { |
||
55 | } |
||
56 | |||
58 |