2020-02-09 23:02:19 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Objects;
|
|
|
|
|
|
|
|
abstract class ApiObject implements \JsonSerializable {
|
|
|
|
|
2021-04-03 10:39:13 +02:00
|
|
|
public abstract function jsonSerialize(): array;
|
2020-02-09 23:02:19 +01:00
|
|
|
|
|
|
|
public function __toString() { return json_encode($this); }
|
|
|
|
|
|
|
|
}
|