UserFloodEvent
class UserFloodEvent extends Event (View source)
Provides a user flood event for event listeners.
Properties
| protected string | $name | Flood event name. |
|
| protected int | $threshold | Flood event threshold. |
|
| protected int | $window | Flood event window. |
|
| protected string | $identifier | Flood event identifier. |
|
| protected int | $uid | Flood event uid. |
|
| protected string | $ip | Flood event IP. |
Methods
Constructs a user flood event object.
Gets the name of the user flood event object.
Gets the threshold for the user flood event object.
Gets the window for the user flood event object.
Gets the identifier of the user flood event object.
Gets the IP of the user flood event object.
Gets the uid of the user flood event object.
Is the user flood event associated with an IP?
Is the user flood event associated with a uid?
Details
__construct(string $name, int $threshold, int $window, string $identifier)
Constructs a user flood event object.
string
getName()
Gets the name of the user flood event object.
int
getThreshold()
Gets the threshold for the user flood event object.
int
getWindow()
Gets the window for the user flood event object.
string
getIdentifier()
Gets the identifier of the user flood event object.
string
getIp()
Gets the IP of the user flood event object.
int
getUid()
Gets the uid of the user flood event object.
bool
hasIp()
Is the user flood event associated with an IP?
bool
hasUid()
Is the user flood event associated with a uid?