<?php
/**
 * Link         :   http://www.phpcorner.net
 * User         :   qingbing<780042175@qq.com>
 * Date         :   2018-12-10
 * Version      :   1.0
 */

namespace Helper;

use Abstracts\Base;

class Event extends Base
{
    /* @var mixed 事件发送者: $sender->attachEventHandler(...) */
    public $sender;
    /* @var bool 事件是否触发过 */
    public $handled = false;
    /* @var mixed 事件传递参数 */
    public $params;

    /**
     * 构造函数
     * @param mixed $sender 事件发送者
     * @param mixed $params 传递参数
     */
    public function __construct($sender, $params = null)
    {
        $this->sender = $sender;
        $this->params = $params;
    }
}