Namespace and ClassPath rewrites
This commit is contained in:
11
Core/Objects/ApiObject.class.php
Normal file
11
Core/Objects/ApiObject.class.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Core\Objects;
|
||||
|
||||
abstract class ApiObject implements \JsonSerializable {
|
||||
|
||||
public abstract function jsonSerialize(): array;
|
||||
|
||||
public function __toString() { return json_encode($this->jsonSerialize()); }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user