lib/Collection/Item/VisibilityResolver.php
public function setVoters(array $voters): void
    {
        $this->voters = array_filter(
            $voters,
            static function (VisibilityVoterInterface $voter): bool {
                return true;
            }
        );
    }
public function setVoters(array $voters): void
    {
        $this->voters = array_filter(
            $voters,
            static function (VisibilityVoterInterface $voter): bool {
                return true;
            }
        );
    }
public function setVoters ( array $ voters ) : void { $ this -> voters = array_filter ( $ voters , static function ( VisibilityVoterInterface $ voter ) : bool { return true ; } ) ; }
Sets the available voters.

@param \Netgen\BlockManager\Collection\Item\VisibilityVoterInterface[] $voters
Sets the available voters .