| 1 | <?php |
||
| 19 | abstract class Resource implements \JsonSerializable |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @param \stdClass $json |
||
| 23 | * @return static |
||
| 24 | */ |
||
| 25 | 6 | public static function createFromJson(\stdClass $json) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * Serialize this resource into an array for json |
||
| 41 | * |
||
| 42 | * @return array |
||
| 43 | */ |
||
| 44 | 12 | public function jsonSerialize() |
|
| 57 | } |