1 | <?php |
||
10 | class ApiErrorResponse |
||
11 | { |
||
12 | /** |
||
13 | * API error id. |
||
14 | * |
||
15 | * @var string |
||
16 | * |
||
17 | * @JMS\Type("string") |
||
18 | * @JMS\SerializedName("id") |
||
19 | */ |
||
20 | protected $id; |
||
21 | |||
22 | /** |
||
23 | * Response status. |
||
24 | * |
||
25 | * @var integer |
||
26 | * |
||
27 | * @JMS\Type("integer") |
||
28 | * @JMS\SerializedName("status") |
||
29 | */ |
||
30 | protected $status; |
||
31 | |||
32 | /** |
||
33 | * API error cause. |
||
34 | * |
||
35 | * @var string |
||
36 | * |
||
37 | * @JMS\Type("string") |
||
38 | * @JMS\SerializedName("cause") |
||
39 | */ |
||
40 | protected $cause; |
||
41 | |||
42 | /** |
||
43 | * API error message. |
||
44 | * |
||
45 | * @var string |
||
46 | * |
||
47 | * @JMS\Type("string") |
||
48 | * @JMS\SerializedName("message") |
||
49 | */ |
||
50 | protected $message; |
||
51 | |||
52 | /** |
||
53 | * API error details. |
||
54 | * |
||
55 | * @var array|null |
||
56 | * |
||
57 | * @JMS\Type("array") |
||
58 | * @JMS\SerializedName("details") |
||
59 | */ |
||
60 | protected $details; |
||
61 | |||
62 | /** |
||
63 | * Get the ID. |
||
64 | * |
||
65 | * @return string |
||
66 | */ |
||
67 | public function getId() |
||
71 | |||
72 | /** |
||
73 | * Set the error ID. |
||
74 | * |
||
75 | * @param string $id The error ID. |
||
76 | * @return ApiErrorResponse |
||
77 | */ |
||
78 | public function setId($id) |
||
84 | |||
85 | /** |
||
86 | * Get the status. |
||
87 | * |
||
88 | * @return integer |
||
89 | */ |
||
90 | public function getStatus() |
||
94 | |||
95 | /** |
||
96 | * Set the status. |
||
97 | * |
||
98 | * @param integer $status The status. |
||
99 | * @return ApiErrorResponse |
||
100 | */ |
||
101 | public function setStatus($status) |
||
107 | |||
108 | /** |
||
109 | * Get the cause. |
||
110 | * |
||
111 | * @return string |
||
112 | */ |
||
113 | public function getCause() |
||
117 | |||
118 | /** |
||
119 | * Set the cause. |
||
120 | * @param string $cause |
||
121 | * @return ApiErrorResponse |
||
122 | */ |
||
123 | public function setCause($cause) |
||
129 | |||
130 | /** |
||
131 | * Get the error message. |
||
132 | * |
||
133 | * @return string |
||
134 | */ |
||
135 | public function getMessage() |
||
139 | |||
140 | /** |
||
141 | * Set the message. |
||
142 | * |
||
143 | * @param string $message The message. |
||
144 | * @return ApiErrorResponse |
||
145 | */ |
||
146 | public function setMessage($message) |
||
152 | |||
153 | /** |
||
154 | * Get the details. |
||
155 | * |
||
156 | * @return array|null |
||
157 | */ |
||
158 | public function getDetails() |
||
162 | |||
163 | /** |
||
164 | * Set the details. |
||
165 | * |
||
166 | * @param array $details The details. |
||
167 | * @return ApiErrorResponse |
||
168 | */ |
||
169 | public function setDetails(array $details = null) |
||
175 | } |
||
176 |