@@ 114-123 (lines=10) @@ | ||
111 | * |
|
112 | * @return void |
|
113 | */ |
|
114 | public function offsetSet($offset, $value){ |
|
115 | ||
116 | if(is_null($offset)){ |
|
117 | $this->array[] = new DBResultRow($value); |
|
118 | } |
|
119 | else{ |
|
120 | $this->array[$offset] = new DBResultRow($value); |
|
121 | } |
|
122 | ||
123 | } |
|
124 | ||
125 | /** |
|
126 | * @param int|string $offset |
@@ 72-81 (lines=10) @@ | ||
69 | * |
|
70 | * @return void |
|
71 | */ |
|
72 | public function offsetSet($offset, $value){ |
|
73 | ||
74 | if(is_null($offset)){ |
|
75 | $this->array[] = $value; |
|
76 | } |
|
77 | else{ |
|
78 | $this->array[$offset] = $value; |
|
79 | } |
|
80 | ||
81 | } |
|
82 | ||
83 | } |
|
84 |