1 | <?php |
||
9 | class Document extends ArrayObject implements JsonSerializable |
||
10 | { |
||
11 | public function __construct(array $value) |
||
15 | |||
16 | /** |
||
17 | * @return mixed |
||
18 | */ |
||
19 | public function &__get(string $name) |
||
25 | |||
26 | /** |
||
27 | * @param mixed $value |
||
28 | */ |
||
29 | public function __set(string $name, $value) |
||
33 | |||
34 | public function __isset(string $name) |
||
38 | |||
39 | public function __unset(string $name) |
||
43 | |||
44 | /** |
||
45 | * @see JsonSerializable |
||
46 | */ |
||
47 | public function jsonSerialize(): array |
||
51 | |||
52 | /** |
||
53 | * Returns the document data. |
||
54 | */ |
||
55 | public function getArrayCopy(): array |
||
59 | |||
60 | /** |
||
61 | * Converts the associative arrays to stdClass object recursively. |
||
62 | * |
||
63 | * @return array|stdClass |
||
64 | */ |
||
65 | private static function arrayToObject(array $array) |
||
81 | |||
82 | /** |
||
83 | * Converts stdClass objects to arrays recursively. |
||
84 | */ |
||
85 | private static function objectToArray(array $array): array |
||
95 | } |
||
96 |