context); if (array_key_exists($key, $context)) { return $context[$key]; } else { return $default; } } public function set($key, $value) { $context = unserialize($this->context); $context[$key] = $value; $this->context = serialize($context); } }