/** * @param Worker $worker * * @return void */ public function addWorker(Worker $worker) { $this->eventToWorkerMap[$worker->getEventClass()][$this->order++] = $worker; $this->count++; }
/** * @param Worker $worker * * @return string */ private function getWorkerName(Worker $worker) { return sprintf('%s::%s', $worker->getListenerClass(), $worker->getMethodName()); }