public function calculateRepeatQuota(GeneratorInterface $generator)
    {
        $repeat_x = $this->getMinOccurances();
        
        if($this->getOccuranceRange() > 0) {
            $repeat_x = (integer) \round($generator->generate($this->getMinOccurances(),$this->getMaxOccurances()));        
        } 
        
        return $repeat_x;
    }
public function calculateRepeatQuota(GeneratorInterface $generator)
    {
        $repeat_x = $this->getMinOccurances();
        
        if($this->getOccuranceRange() > 0) {
            $repeat_x = (integer) \round($generator->generate($this->getMinOccurances(),$this->getMaxOccurances()));        
        } 
        
        return $repeat_x;
    }
public function calculateRepeatQuota ( GeneratorInterface $ generator ) { $ repeat_x = $ this -> getMinOccurances ( ) ; if ( $ this -> getOccuranceRange ( ) > 0 ) { $ repeat_x = ( integer ) \ round ( $ generator -> generate ( $ this -> getMinOccurances ( ) , $ this -> getMaxOccurances ( ) ) ) ; } return $ repeat_x ; }
Calculate a random numer of repeats given the current min-max range

@access public
@param GeneratorInterface $generator
@return Integer
Calculate a random numer of repeats given the current min - max range