Class Rate
The rate.
Final
Namespace: bandwidthThrottle\tokenBucket
License: WTFPL
Author: Markus Malkusch markus@malkusch.de
Link: Donations
Located at Rate.php
Namespace: bandwidthThrottle\tokenBucket
License: WTFPL
Author: Markus Malkusch markus@malkusch.de
Link: Donations
Located at Rate.php
public
|
#
__construct( integer $tokens, string $unit )
Sets the amount of tokens which will be produced per unit. |
string |
MICROSECOND
|
#
"microsecond"
|
string |
MILLISECOND
|
#
"millisecond"
|
string |
SECOND
|
#
"second"
|
string |
MINUTE
|
#
"minute"
|
string |
HOUR
|
#
"hour"
|
string |
DAY
|
#
"day"
|
string |
WEEK
|
#
"week"
|
string |
MONTH
|
#
"month"
|
string |
YEAR
|
#
"year"
|