1 | <?php |
||
15 | class AbstractArray implements CompositableInterface, \Countable |
||
16 | { |
||
17 | use SolidStateTrait; |
||
18 | |||
19 | /** |
||
20 | * @var array |
||
21 | */ |
||
22 | protected $values = []; |
||
23 | |||
24 | /** |
||
25 | * Indication that values were updated. |
||
26 | * |
||
27 | * @var bool |
||
28 | */ |
||
29 | protected $updated = false; |
||
30 | |||
31 | /** |
||
32 | * Low level atomic operations. |
||
33 | * |
||
34 | * @var array |
||
35 | */ |
||
36 | protected $atomics = []; |
||
37 | |||
38 | /** |
||
39 | * @param mixed $values |
||
40 | */ |
||
41 | public function __construct($values) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function setValue($data) |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function hasUpdates(): bool |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function buildAtomics(string $container = ''): array |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | public function flushUpdates() |
||
77 | |||
78 | /** |
||
79 | * @return array |
||
80 | */ |
||
81 | public function packValue() |
||
85 | |||
86 | /** |
||
87 | * @return int |
||
88 | */ |
||
89 | public function count(): int |
||
93 | |||
94 | /** |
||
95 | * Clone accessor and ensure that it state is updated. |
||
96 | */ |
||
97 | public function __clone() |
||
103 | |||
104 | /** |
||
105 | * @return array |
||
106 | */ |
||
107 | public function __debugInfo() |
||
114 | |||
115 | /** |
||
116 | * @return array |
||
117 | */ |
||
118 | public function jsonSerialize() |
||
122 | } |