/** * @param Worker $worker * * @return void */ public function addWorker(Worker $worker) { $this->eventToWorkerMap[$worker->getEventClass()][$this->order++] = $worker; $this->count++; }
/** * @param Worker $worker * * @return void */ public function addWorker(Worker $worker) { $this->eventToWorkerMap[$worker->getEventClass()][$this->order++] = $worker; $this->count++; }