src/Utility/StampedeProtectionTrait.php
public function setPrecomputeBeta($beta)
    {
        if (!is_int($beta) || $beta < 1 || $beta > 10) {
            throw new Exception('Invalid beta specified. An integer between 1 and 10 is required.');
        }

        $this->precomputeBeta = $beta;
    }
public function setPrecomputeBeta($beta)
    {
        if (!is_int($beta) || $beta < 1 || $beta > 10) {
            throw new Exception('Invalid beta specified. An integer between 1 and 10 is required.');
        }

        $this->precomputeBeta = $beta;
    }
public function setPrecomputeBeta ( $ beta ) { if ( ! is_int ( $ beta ) || $ beta < 1 || $ beta > 10 ) { throw new Exception ( 'Invalid beta specified. An integer between 1 and 10 is required.' ) ; } $ this -> precomputeBeta = $ beta ; }
Set the beta - early expiration scale.

This affects the probability of early expiration.

Default is 4, Set to any value from 1 to 10 to increase the chance of early expiration.

@return void
Set the beta - early expiration scale .