Skip to content

Commit

Permalink
Merge 538241f into 58ea5fa
Browse files Browse the repository at this point in the history
  • Loading branch information
bucefal91 committed Aug 19, 2018
2 parents 58ea5fa + 538241f commit 03edeaf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/CrEOF/Spatial/PHP/Types/AbstractGeometry.php
Expand Up @@ -32,7 +32,7 @@
* @author Derek J. Lambert <dlambert@dereklambert.com>
* @license http://dlambert.mit-license.org MIT
*/
abstract class AbstractGeometry implements GeometryInterface
abstract class AbstractGeometry implements GeometryInterface, \JsonSerializable
{
/**
* @var int
Expand Down Expand Up @@ -65,6 +65,13 @@ public function toJson()
return json_encode($json);
}

/**
* @return array
*/
public function jsonSerialize() {
return $this->toArray();
}

/**
* @return null|int
*/
Expand Down

0 comments on commit 03edeaf

Please sign in to comment.