1 | <?php |
||
8 | final class ImmutableArrayObject extends \ArrayObject |
||
9 | { |
||
10 | /** |
||
11 | * @see \ArrayObject::offsetSet |
||
12 | * |
||
13 | * @throws \LogicException |
||
14 | */ |
||
15 | public function offsetSet($index, $newval) |
||
19 | |||
20 | /** |
||
21 | * @see \ArrayObject::offsetUnset |
||
22 | * |
||
23 | * @throws \LogicException |
||
24 | */ |
||
25 | public function offsetUnset($index) |
||
29 | |||
30 | /** |
||
31 | * @see \ArrayObject::append |
||
32 | * |
||
33 | * @throws \LogicException |
||
34 | */ |
||
35 | public function append($value) |
||
39 | |||
40 | /** |
||
41 | * @see \ArrayObject::exchangeArray |
||
42 | * |
||
43 | * @throws \LogicException |
||
44 | */ |
||
45 | public function exchangeArray($array) |
||
49 | |||
50 | /** |
||
51 | * Creates a new ImmutableArrayObject from the given mutable ArrayObject instance. |
||
52 | * |
||
53 | * @param \ArrayObject The mutable array object. |
||
54 | * |
||
55 | * @return ImmutableArrayObject |
||
56 | */ |
||
57 | public static function createFromMutable(\ArrayObject $arrayObject) |
||
61 | } |
||
62 |