| 1 | <?php |
||
| 5 | trait ReadOnlyArrayTrait |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Assigns a value to the specified offset. |
||
| 9 | * |
||
| 10 | * @param mixed $offset |
||
| 11 | * @param mixed $value |
||
| 12 | * |
||
| 13 | * @return void |
||
| 14 | */ |
||
| 15 | 3 | public function offsetSet($offset, $value) |
|
| 19 | |||
| 20 | /** |
||
| 21 | * Whether or not an offset exists. |
||
| 22 | * |
||
| 23 | * @param mixed $offset |
||
| 24 | * |
||
| 25 | * @return bool |
||
| 26 | */ |
||
| 27 | 3 | public function offsetExists($offset) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Unsets the offset. |
||
| 34 | * |
||
| 35 | * @param mixed $offset |
||
| 36 | * |
||
| 37 | * @return void |
||
| 38 | */ |
||
| 39 | 3 | public function offsetUnset($offset) |
|
| 43 | |||
| 44 | /** |
||
| 45 | * Returns the value at specified offset. |
||
| 46 | * |
||
| 47 | * @param mixed $offset |
||
| 48 | * |
||
| 49 | * @return mixed |
||
| 50 | */ |
||
| 51 | 3 | public function offsetGet($offset) |
|
| 56 | } |
||
| 57 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.