protected getConstructorArguments ( ) : array | ||
return | array |
protected function getConstructorArguments() : array
{
$voters = [];
foreach ($this->votes as $queueName => $confidence) {
$resolver = new SimpleQueueResolver($queueName);
$voters[] = new SimpleQueueVoter($resolver, $confidence);
}
return [$voters];
}
protected function getConstructorArguments() : array { $args = parent::getConstructorArguments(); $args[] = $this->whitelist; return $args; }