Method | Description | |
---|---|---|
__construct ( integer $tokens, string $unit ) | Sets the amount of tokens which will be produced per unit. | |
getTokensPerSecond ( ) : double | Returns the rate in Tokens per second. |
public __construct ( integer $tokens, string $unit ) | ||
$tokens | integer | positive amount of tokens to produce per unit |
$unit | string | unit as one of Rate's constants |
public getTokensPerSecond ( ) : double | ||
return | double | The rate. |