We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4802eed commit fcadae6Copy full SHA for fcadae6
src/GusApi/SearchReport.php
@@ -5,7 +5,7 @@
5
* Class SearchReport
6
* @package GusApi
7
*/
8
-class SearchReport
+class SearchReport implements \JsonSerializable
9
{
10
const TYPE_JURIDICAL_PERSON = 'p';
11
@@ -212,4 +212,14 @@ private function makeType($type)
212
213
return trim(strtolower($type));
214
}
215
-}
+
216
+ /**
217
+ * @return array
218
+ */
219
+ public function jsonSerialize()
220
+ {
221
+ $vars = get_object_vars($this);
222
223
+ return $vars;
224
+ }
225
+}
0 commit comments