| @@ 52-56 (lines=5) @@ | ||
| 49 | */ |
|
| 50 | public function offsetSet($offset, $value) |
|
| 51 | { |
|
| 52 | if (is_null($offset)) { |
|
| 53 | $this->elements[] = $value; |
|
| 54 | } else { |
|
| 55 | $this->elements[$offset] = $value; |
|
| 56 | } |
|
| 57 | } |
|
| 58 | ||
| 59 | public function offsetExists($offset) |
|
| @@ 65-69 (lines=5) @@ | ||
| 62 | */ |
|
| 63 | public function offsetSet($offset, $value) |
|
| 64 | { |
|
| 65 | if (is_null($offset)) { |
|
| 66 | $this->attributes[] = $value; |
|
| 67 | } else { |
|
| 68 | $this->attributes[$offset] = $value; |
|
| 69 | } |
|
| 70 | } |
|
| 71 | ||
| 72 | ||