12 lines
194 B
PHP
12 lines
194 B
PHP
|
<?php
|
||
|
|
||
|
namespace Objects;
|
||
|
|
||
|
abstract class ApiObject implements \JsonSerializable {
|
||
|
|
||
|
public abstract function jsonSerialize();
|
||
|
|
||
|
public function __toString() { return json_encode($this); }
|
||
|
|
||
|
}
|