$v) { $el->{$k} = $v; } return $el; } public function toArray(){ return $this->_attrs; } public function offsetGet($offset) { return $this->_attrs[$offset]; // TODO: Implement offsetGet() method. } public function offsetSet($offset, $value) { $this->_attrs[$offset] = $value; return true; // TODO: Implement offsetSet() method. } public function offsetUnset($offset) { unset($this->_attrs[$offset]); return true; // TODO: Implement offsetUnset() method. } public function offsetExists($offset) { return isset($this->_attrs[$offset]); // TODO: Implement offsetExists() method. } }