1 | <?php |
||
17 | trait Compatibility { |
||
18 | /** |
||
19 | * @param string $index |
||
20 | * |
||
21 | * @return bool |
||
22 | */ |
||
23 | function offsetExists ($index) { |
||
26 | /** |
||
27 | * @param string $index |
||
28 | * |
||
29 | * @return mixed |
||
30 | */ |
||
31 | function &offsetGet ($index) { |
||
34 | /** |
||
35 | * @param string $index |
||
36 | * @param mixed $value |
||
37 | */ |
||
38 | function offsetSet ($index, $value) { |
||
41 | /** |
||
42 | * @param string $index |
||
43 | */ |
||
44 | public function offsetUnset ($index) { |
||
47 | /** |
||
48 | * @return mixed Can return any type. |
||
49 | */ |
||
50 | public function current () { |
||
56 | /** |
||
57 | * @return mixed scalar on success, or null on failure. |
||
58 | */ |
||
59 | public function key () { |
||
62 | /** |
||
63 | * @return boolean The return value will be casted to boolean and then evaluated. |
||
64 | * Returns true on success or false on failure. |
||
65 | */ |
||
66 | public function valid () { |
||
72 | } |
||
73 |