public function resolveQueueName($command) : string { if (is_object($command)) { $class = get_class($command); if (isset($this->map[$class])) { return $this->map[$class]; } } throw new QueueResolverException(); }