public function resolveQueueName($command) : string { $votes = $this->getVotes($command); if (!isset($votes[0])) { throw new QueueResolverException(); } return $votes[0]->getQueueName(); }