web-base/core/Objects/ApiObject.class.php
2022-02-20 16:53:26 +01:00

12 lines
218 B
PHP

<?php
namespace Objects;
abstract class ApiObject implements \JsonSerializable {
public abstract function jsonSerialize(): array;
public function __toString() { return json_encode($this->jsonSerialize()); }
}