public function offsetGet($offset) { if (!isset($this->options[$offset])) { throw new \DomainException('Undefined field: ' + $offset); } return $this->options[$offset]; }