src/Worker/EventHeapOfWorker.php
function __init()
    {
        $this->collector = new DataCollector;

        // attach default event names:
        $this->bind(new Event(self::EVENT_PAYLOAD_RECEIVED));
        $this->bind(new Event(self::EVENT_PAYLOAD_FAILURE));
        $this->bind(new Event(self::EVENT_PAYLOAD_SUCCEED));
        $this->bind(new Event(self::EVENT_PAYLOAD_ERROR));
    }
function __init()
    {
        $this->collector = new DataCollector;

        // attach default event names:
        $this->bind(new Event(self::EVENT_PAYLOAD_RECEIVED));
        $this->bind(new Event(self::EVENT_PAYLOAD_FAILURE));
        $this->bind(new Event(self::EVENT_PAYLOAD_SUCCEED));
        $this->bind(new Event(self::EVENT_PAYLOAD_ERROR));
    }
Initialize