JsonSerializable.php
24 lines
| 1 | <?php |
| 2 | |
| 3 | namespace MailPoetVendor; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | if (!\interface_exists('JsonSerializable')) { |
| 9 | interface JsonSerializable |
| 10 | { |
| 11 | /** |
| 12 | * Specify data which should be serialized to JSON. |
| 13 | * |
| 14 | * @link http://php.net/manual/en/jsonserializable.jsonserialize.php |
| 15 | * |
| 16 | * @return mixed data which can be serialized by <b>json_encode</b>, |
| 17 | * which is a value of any type other than a resource. |
| 18 | * |
| 19 | * @since 5.4.0 |
| 20 | */ |
| 21 | public function jsonSerialize(); |
| 22 | } |
| 23 | } |
| 24 |