| 1 | <?php |
||
| 16 | class ImmutableCollection extends BaseCollection |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Prevent removing elements |
||
| 20 | * |
||
| 21 | * @param mixed $offset |
||
| 22 | * @throws ImmutableException |
||
| 23 | */ |
||
| 24 | 1 | public function offsetUnset($offset) |
|
| 28 | |||
| 29 | /** |
||
| 30 | * Prevent setting elements |
||
| 31 | * |
||
| 32 | * @param mixed $offset |
||
| 33 | * @param mixed $value |
||
| 34 | * @throws ImmutableException |
||
| 35 | */ |
||
| 36 | 1 | public function offsetSet($offset, $value) |
|
| 40 | } |
||
| 41 |