1 | <?php |
||
12 | class ApiErrorResponse |
||
13 | { |
||
14 | /** |
||
15 | * API error id. |
||
16 | * |
||
17 | * @var string |
||
18 | * |
||
19 | * @JMS\Type("string") |
||
20 | * @JMS\SerializedName("id") |
||
21 | */ |
||
22 | protected $id; |
||
23 | |||
24 | /** |
||
25 | * Response status. |
||
26 | * |
||
27 | * @var integer |
||
28 | * |
||
29 | * @JMS\Type("integer") |
||
30 | * @JMS\SerializedName("status") |
||
31 | */ |
||
32 | protected $status; |
||
33 | |||
34 | /** |
||
35 | * API error cause. |
||
36 | * |
||
37 | * @var string |
||
38 | * |
||
39 | * @JMS\Type("string") |
||
40 | * @JMS\SerializedName("cause") |
||
41 | */ |
||
42 | protected $cause; |
||
43 | |||
44 | /** |
||
45 | * API error message. |
||
46 | * |
||
47 | * @var string |
||
48 | * |
||
49 | * @JMS\Type("string") |
||
50 | * @JMS\SerializedName("message") |
||
51 | */ |
||
52 | protected $message; |
||
53 | |||
54 | /** |
||
55 | * API error details. |
||
56 | * |
||
57 | * @var array|null |
||
58 | * |
||
59 | * @JMS\Type("array") |
||
60 | * @JMS\SerializedName("details") |
||
61 | */ |
||
62 | protected $details; |
||
63 | |||
64 | /** |
||
65 | * Get the ID. |
||
66 | * |
||
67 | * @return string |
||
68 | */ |
||
69 | public function getId() |
||
73 | |||
74 | /** |
||
75 | * Set the error ID. |
||
76 | * |
||
77 | * @param string $id The error ID. |
||
78 | * @return ApiErrorResponse |
||
79 | */ |
||
80 | public function setId($id) |
||
86 | |||
87 | /** |
||
88 | * Get the status. |
||
89 | * |
||
90 | * @return integer |
||
91 | */ |
||
92 | public function getStatus() |
||
96 | |||
97 | /** |
||
98 | * Set the status. |
||
99 | * |
||
100 | * @param integer $status The status. |
||
101 | * @return ApiErrorResponse |
||
102 | */ |
||
103 | public function setStatus($status) |
||
109 | |||
110 | /** |
||
111 | * Get the cause. |
||
112 | * |
||
113 | * @return string |
||
114 | */ |
||
115 | public function getCause() |
||
119 | |||
120 | /** |
||
121 | * Set the cause. |
||
122 | * @param string $cause |
||
123 | * @return ApiErrorResponse |
||
124 | */ |
||
125 | public function setCause($cause) |
||
131 | |||
132 | /** |
||
133 | * Get the error message. |
||
134 | * |
||
135 | * @return string |
||
136 | */ |
||
137 | public function getMessage() |
||
141 | |||
142 | /** |
||
143 | * Set the message. |
||
144 | * |
||
145 | * @param string $message The message. |
||
146 | * @return ApiErrorResponse |
||
147 | */ |
||
148 | public function setMessage($message) |
||
154 | |||
155 | /** |
||
156 | * Get the details. |
||
157 | * |
||
158 | * @return array|null |
||
159 | */ |
||
160 | public function getDetails() |
||
164 | |||
165 | /** |
||
166 | * Set the details. |
||
167 | * |
||
168 | * @param array $details The details. |
||
169 | * @return ApiErrorResponse |
||
170 | */ |
||
171 | public function setDetails(array $details = null) |
||
177 | } |
||
178 |