_values = $contents; } public function offsetExists($name) { return isset($this->_values[$name]); } public function offsetGet($name) { if (!isset($this->_values[$name])) { return null; } return $this->_values[$name]; } public function offsetSet($name, $value) { $this->_values[$name] = $value; } public function offsetUnset($name) { unset($this->_values[$name]); } }