| 1 | <?php |
||
| 7 | trait ImmutableArrayAccessTrait |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Sets the value at the specified index $offset to $value |
||
| 11 | * |
||
| 12 | * @param string|integer $offset The index being set. |
||
| 13 | * @param mixed $value The new value for the index. |
||
| 14 | * |
||
| 15 | * @return void |
||
| 16 | * |
||
| 17 | * @throws RuntimeException Always Thrown |
||
| 18 | */ |
||
| 19 | public function offsetSet($offset, $value) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Unsets the value at the specified index |
||
| 26 | * |
||
| 27 | * @param mixed $offset The index being unset. |
||
| 28 | * |
||
| 29 | * @return void |
||
| 30 | * |
||
| 31 | * @throws RuntimeException Always Thrown |
||
| 32 | */ |
||
| 33 | public function offsetUnset($offset) |
||
| 37 | } |
||
| 38 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.