@@ 213-221 (lines=9) @@ | ||
210 | /** |
|
211 | * @inheritDoc |
|
212 | */ |
|
213 | public function offsetGet($offset) |
|
214 | { |
|
215 | if ($this->offsetExists($offset)) { |
|
216 | $method = 'get'.ucfirst($offset); |
|
217 | ||
218 | return $this->$method(); |
|
219 | } |
|
220 | return null; |
|
221 | } |
|
222 | ||
223 | /** |
|
224 | * @inheritDoc |
|
@@ 238-245 (lines=8) @@ | ||
235 | /** |
|
236 | * @inheritDoc |
|
237 | */ |
|
238 | public function offsetUnset($offset) |
|
239 | { |
|
240 | if ($this->offsetExists($offset)) { |
|
241 | $method = 'set'.ucfirst($offset); |
|
242 | ||
243 | $this->$method(null); |
|
244 | } |
|
245 | } |
|
246 | } |
|
247 |