web-base/core/Objects/ApiObject.class.php

15 lines
234 B
PHP
Raw Normal View History

2020-02-09 23:02:19 +01:00
<?php
namespace Objects;
abstract class ApiObject implements \JsonSerializable {
public abstract function jsonSerialize();
public function __construct() { }
public function __toString() { return json_encode($this); }
}
?>