| @@ 96-104 (lines=9) @@ | ||
| 93 | /** |
|
| 94 | * @inheritdoc |
|
| 95 | */ |
|
| 96 | public function &offsetGet($offset) |
|
| 97 | { |
|
| 98 | $null = null; |
|
| 99 | if (isset($this->value[$offset])) { |
|
| 100 | return $this->value[$offset]; |
|
| 101 | } else { |
|
| 102 | return $null; |
|
| 103 | } |
|
| 104 | } |
|
| 105 | ||
| 106 | /** |
|
| 107 | * @inheritdoc |
|
| @@ 109-116 (lines=8) @@ | ||
| 106 | /** |
|
| 107 | * @inheritdoc |
|
| 108 | */ |
|
| 109 | public function offsetSet($offset, $value) |
|
| 110 | { |
|
| 111 | if ($offset === null) { |
|
| 112 | $this->value[] = $value; |
|
| 113 | } else { |
|
| 114 | $this->value[$offset] = $value; |
|
| 115 | } |
|
| 116 | } |
|
| 117 | ||
| 118 | /** |
|
| 119 | * @inheritdoc |
|