Method | Description | |
---|---|---|
__construct ( Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage $storage, Tolerance\Throttling\Rate\Rate $rate ) | ||
getTicksBeforeUnderLimit ( $identifier ) | ||
hasReachedLimit ( $identifier ) | ||
tick ( $identifier ) |
Method | Description | |
---|---|---|
computeCurrentRate ( string $identifier ) : float | Create the current rate. | |
getMeasure ( string $identifier ) : Tolerance\Throttling\RateMeasure\RateMeasure |
public __construct ( Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage $storage, Tolerance\Throttling\Rate\Rate $rate ) | ||
$storage | Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage | |
$rate | Tolerance\Throttling\Rate\Rate |