context = $context; } public function getIterator() { return new \ArrayIterator($this->context); } public function offsetGet($offset) { return array_key_exists($offset, $this->context) ? $this->context[$offset] : null; } public function offsetSet($offset, $value) { $this->context[$offset] = $value; } public function offsetExists($offset) { return array_key_exists($offset, $this->context); } public function offsetUnset($offset) { unset($this->context[$offset]); } public function toArray() { return $this->context; } }