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