1 | <?php |
||
9 | trait ArrayAccessTrait |
||
10 | { |
||
11 | /** |
||
12 | * Returns true when a key exists of the same type and value as $OFFSET |
||
13 | * |
||
14 | * @param mixed $offset |
||
15 | * @return bool |
||
16 | */ |
||
17 | 1 | public function offsetExists($offset) |
|
26 | |||
27 | /** |
||
28 | * Returns the value of a key with the same type and value as $OFFSET, or returns |
||
29 | * $DEFAULT when it this key does not exist |
||
30 | * |
||
31 | * @param mixed $offset |
||
32 | * @param mixed $default |
||
33 | * @return mixed |
||
34 | */ |
||
35 | 1 | public function offsetGet($offset, $default = null) |
|
44 | |||
45 | /** |
||
46 | * Not implemented |
||
47 | * |
||
48 | * @param mixed $offset |
||
49 | * @param mixed $value |
||
50 | */ |
||
51 | 1 | public function offsetSet($offset, $value) |
|
55 | |||
56 | /** |
||
57 | * Not implemented |
||
58 | * |
||
59 | * @param mixed $offset |
||
60 | */ |
||
61 | 1 | public function offsetUnset($offset) |
|
65 | } |
||
66 |