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