| @@ 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) |
|
| @@ 45-49 (lines=5) @@ | ||
| 42 | */ |
|
| 43 | public function offsetSet($offset, $value) |
|
| 44 | { |
|
| 45 | if (is_null($offset)) { |
|
| 46 | $this->attributes[] = $value; |
|
| 47 | } else { |
|
| 48 | $this->attributes[$offset] = $value; |
|
| 49 | } |
|
| 50 | } |
|
| 51 | ||
| 52 | ||