Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | /** |
3 | * Pop PHP Framework (http://www.popphp.org/) |
4 | * |
5 | * @link https://github.com/popphp/popphp-framework |
6 | * @author Nick Sagona, III <dev@nolainteractive.com> |
7 | * @copyright Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com) |
8 | * @license http://www.popphp.org/license New BSD License |
9 | */ |
10 | |
11 | /** |
12 | * @namespace |
13 | */ |
14 | namespace Pop\Utils; |
15 | |
16 | /** |
17 | * Pop utils jsonable interface |
18 | * |
19 | * @category Pop |
20 | * @package Pop\Utils |
21 | * @author Nick Sagona, III <dev@nolainteractive.com> |
22 | * @copyright Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com) |
23 | * @license http://www.popphp.org/license New BSD License |
24 | * @version 2.1.0 |
25 | */ |
26 | interface JsonableInterface extends \JsonSerializable |
27 | { |
28 | |
29 | /** |
30 | * JSON serialize the array object |
31 | * |
32 | * @param int $options |
33 | * @param int $depth |
34 | * @return string |
35 | */ |
36 | public function jsonSerialize(int $options = 0, int $depth = 512): string; |
37 | |
38 | /** |
39 | * Unserialize a JSON string |
40 | * |
41 | * @param string $jsonString |
42 | * @param int $depth |
43 | * @param int $options |
44 | * @return ArrayObject |
45 | */ |
46 | public function jsonUnserialize(string $jsonString, int $depth = 512, int $options = 0): ArrayObject; |
47 | |
48 | } |