We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b60f0db commit 5761e57Copy full SHA for 5761e57
Model/Address.php
@@ -13,7 +13,7 @@
13
*
14
* @author Api Postcode <info@api-postcode.nl>
15
*/
16
-class Address
+class Address implements \JsonSerializable
17
{
18
/** @var string */
19
private $street;
@@ -125,4 +125,12 @@ public function toArray()
125
'latitude' => $this->latitude,
126
);
127
}
128
+
129
+ /**
130
+ * {@inheritdoc}
131
+ */
132
+ function jsonSerialize()
133
+ {
134
+ return $this->toArray();
135
+ }
136
0 commit comments