MGDigital\BusQue\QueueResolver\QueueVoterWithWhitelistResolver::getVotes PHP Method

getVotes() public method

public getVotes ( $command ) : array
return array
    public function getVotes($command) : array
    {
        $votes = [];
        foreach (parent::getVotes($command) as $vote) {
            if (in_array($vote->getQueueName(), $this->whitelist, true)) {
                $votes[] = $vote;
            }
        }
        return $votes;
    }
QueueVoterWithWhitelistResolver