context = $context; } /** * add content to the event. This content will be printed in the * layout which launched the event. * * @param string $text */ public function addContent($text) { $this->content .= $text; } /** * the content of the event. * * @return string */ public function getContent() { return $this->content; } public function offsetExists($offset) { return isset($this->context[$offset]); } public function offsetGet($offset) { return $this->context[$offset]; } public function offsetSet($offset, $value) { throw new RuntimeException('The event context is read-only, you are not ' . 'allowed to update it.'); } public function offsetUnset($offset) { throw new RuntimeException('The event context is read-only, you are not ' . 'allowed to update it.'); } }