| @@ 39-43 (lines=5) @@ | ||
| 36 | */ |
|
| 37 | public function offsetSet($offset, $value) |
|
| 38 | { |
|
| 39 | if (is_null($offset)) { |
|
| 40 | $this->elements[] = $value; |
|
| 41 | } else { |
|
| 42 | $this->elements[$offset] = $value; |
|
| 43 | } |
|
| 44 | } |
|
| 45 | ||
| 46 | public function offsetExists($offset) |
|
| @@ 49-53 (lines=5) @@ | ||
| 46 | */ |
|
| 47 | public function offsetSet($offset, $value) |
|
| 48 | { |
|
| 49 | if (is_null($offset)) { |
|
| 50 | $this->attributes[] = $value; |
|
| 51 | } else { |
|
| 52 | $this->attributes[$offset] = $value; |
|
| 53 | } |
|
| 54 | } |
|
| 55 | ||
| 56 | ||