name = $name; $this->properties = array(); $args = func_get_args(); for ($i = 1; $i < sizeof($args); $i += 2) { if (isset($args[$i + 1])) { $this->properties[$args[$i]] = $args[$i + 1]; } } } /** * Function: getName * * Returns . */ function getName() { return $this->name; } /** * Function: getProperties * * Returns . */ function getProperties() { return $this->properties; } /** * Function: getProperty * * Returns the property value for the given key. */ function getProperty($key) { return $this->properties[$key]; } /** * Function: isConsumed * * Returns true if the event has been consumed. */ function isConsumed() { return $this->consumed; } /** * Function: consume * * Consumes the event. */ function consume() { $this->consumed = true; } } ?>