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

12 lines
223 B
PHP

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