* @since 2.0 */ class Event extends Component { /** * @var object the sender of this event */ public $sender; /** * @var boolean whether the event is handled. Defaults to false. * When a handler sets this to be true, the rest of the uninvoked event handlers will be canceled. */ public $handled = false; /** * @var mixed extra parameters associated with the event. */ public $params; /** * Constructor. * @param mixed $sender sender of the event */ public function __construct($sender=null) { $this->sender = $sender; } }