MGDigital\BusQue\QueueResolver\QueueVoterResolver::resolveQueueName PHP Method

resolveQueueName() public method

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