1 | <?php |
||
14 | class SMSAResponse implements \JsonSerializable |
||
15 | { |
||
16 | /** |
||
17 | * @var bool |
||
18 | */ |
||
19 | public $success; |
||
20 | /** |
||
21 | * @var array|string |
||
22 | */ |
||
23 | public $data; |
||
24 | /** |
||
25 | * @var null|string |
||
26 | */ |
||
27 | public $error; |
||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | public $type; |
||
32 | /** |
||
33 | * @var AbstractStructBase |
||
34 | */ |
||
35 | public $payload; |
||
36 | /** |
||
37 | * @var \DOMDocument |
||
38 | */ |
||
39 | public $request; |
||
40 | /** |
||
41 | * @var \DOMDocument |
||
42 | */ |
||
43 | public $response; |
||
44 | |||
45 | /** |
||
46 | * SMSAResponse constructor. |
||
47 | * |
||
48 | * @param bool $success |
||
49 | * @param null $data |
||
50 | * @param null $error |
||
51 | * @param $type |
||
52 | * @param $payload |
||
53 | * @param $request |
||
54 | * @param $response |
||
55 | */ |
||
56 | public function __construct(bool $success, $data = null, $error = null, string $type, $payload, $request, $response) |
||
66 | |||
67 | /** |
||
68 | * Specify data which should be serialized to JSON |
||
69 | ** |
||
70 | * |
||
71 | * @return mixed data which can be serialized by <b>json_encode</b>, |
||
72 | * which is a value of any type other than a resource. |
||
73 | * |
||
74 | * @since 5.4.0 |
||
75 | */ |
||
76 | public function jsonSerialize() |
||
88 | } |
||
89 |