source = $source; } /** * Get the source object of this event. * * @return object */ public function getSource() { return $this->source; } /** * Prevent this Event from bubbling any further up the stack. */ public function cancelBubble($cancel = true) { $this->bubbleCancelled = $cancel; } /** * Returns true if this Event will not bubble any further up the stack. * * @return bool */ public function bubbleCancelled() { return $this->bubbleCancelled; } }