| 1 | <?php |
||
| 15 | trait Compatibility { |
||
| 16 | /** |
||
| 17 | * @param string $index |
||
| 18 | * |
||
| 19 | * @return bool |
||
| 20 | */ |
||
| 21 | function offsetExists ($index) { |
||
| 24 | /** |
||
| 25 | * @param string $index |
||
| 26 | * |
||
| 27 | * @return mixed |
||
| 28 | */ |
||
| 29 | function &offsetGet ($index) { |
||
| 32 | /** |
||
| 33 | * @param string $index |
||
| 34 | * @param mixed $value |
||
| 35 | */ |
||
| 36 | function offsetSet ($index, $value) { |
||
| 39 | /** |
||
| 40 | * @param string $index |
||
| 41 | */ |
||
| 42 | public function offsetUnset ($index) { |
||
| 45 | /** |
||
| 46 | * @return mixed Can return any type. |
||
| 47 | */ |
||
| 48 | public function current () { |
||
| 54 | /** |
||
| 55 | * @return mixed scalar on success, or null on failure. |
||
| 56 | */ |
||
| 57 | public function key () { |
||
| 60 | /** |
||
| 61 | * @return boolean The return value will be casted to boolean and then evaluated. |
||
| 62 | * Returns true on success or false on failure. |
||
| 63 | */ |
||
| 64 | public function valid () { |
||
| 70 | } |
||
| 71 |