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

12 lines
201 B
PHP

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