MediaWiki master
|
Public Member Functions | |
__construct ( $limit, $window) | |
perSecond () | |
Get the condition as a number of events per second. | |
Public Attributes | |
int | $limit |
The maximum number of events. | |
float int | $window |
The number of seconds over which the number of events may occur. | |
Wikimedia\WRStats\LimitCondition::__construct | ( | $limit, | |
$window ) |
int | float | string | $limit | The maximum number of events |
int | float | string | $window | The number of seconds over which the number of events may occur |
Definition at line 20 of file LimitCondition.php.
References Wikimedia\WRStats\LimitCondition\$limit, and Wikimedia\WRStats\LimitCondition\$window.
Wikimedia\WRStats\LimitCondition::perSecond | ( | ) |
Get the condition as a number of events per second.
Definition at line 33 of file LimitCondition.php.
References Wikimedia\WRStats\LimitCondition\$window.
int Wikimedia\WRStats\LimitCondition::$limit |
The maximum number of events.
Definition at line 11 of file LimitCondition.php.
Referenced by Wikimedia\WRStats\LimitCondition\__construct().
float int Wikimedia\WRStats\LimitCondition::$window |
The number of seconds over which the number of events may occur.
Definition at line 13 of file LimitCondition.php.
Referenced by Wikimedia\WRStats\LimitCondition\__construct(), and Wikimedia\WRStats\LimitCondition\perSecond().