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