src/STV/ElectionRunner.php
public function setQuota(): int
    {
        $this->quota = (int) floor(
            ($this->validBallots /
                ($this->election->getWinnersCount() + 1)
            ) // p. 47 (1)
            + 1); // p. 47 (2)

        $this->logger->info(sprintf('Quota set at %d based on %d winners and %d valid ballots', $this->quota, $this->election->getWinnersCount(), $this->validBallots));

        return $this->quota;
    }
public function setQuota(): int
    {
        $this->quota = (int) floor(
            ($this->validBallots /
                ($this->election->getWinnersCount() + 1)
            ) // p. 47 (1)
            + 1); // p. 47 (2)

        $this->logger->info(sprintf('Quota set at %d based on %d winners and %d valid ballots', $this->quota, $this->election->getWinnersCount(), $this->validBallots));

        return $this->quota;
    }
public function setQuota ( ) : int { $ this -> quota = ( int ) floor ( ( $ this -> validBallots / ( $ this -> election -> getWinnersCount ( ) + 1 ) ) // p. 47 (1) + 1 ) ; // p. 47 (2) $ this -> logger -> info ( sprintf ( 'Quota set at %d based on %d winners and %d valid ballots' , $ this -> quota , $ this -> election -> getWinnersCount ( ) , $ this -> validBallots ) ) ; return $ this -> quota ; }
Get the quota to win.
p. 47.

TODO: Move this out of this method and use params/args

@return int
Get the quota to win . p . 47 .