PHP Interface Cartalyst\Sentinel\Throttling\ThrottleRepositoryInterface

Afficher le fichier Open project: cartalyst/sentinel Interface Usage Examples

Méthodes publiques

Méthode Description
globalDelay ( ) : integer Returns the global throttling delay, in seconds.
ipDelay ( string $ipAddress ) : integer Returns the IP address throttling delay, in seconds.
log ( string $ipAddress = null, Cartalyst\Sentinel\Users\UserInterface $user = null ) : void Logs a new throttling entry.
userDelay ( Cartalyst\Sentinel\Users\UserInterface $user ) : integer Returns the throttling delay for the given user, in seconds.

Method Details

globalDelay() public méthode

Returns the global throttling delay, in seconds.
public globalDelay ( ) : integer
Résultat integer

ipDelay() public méthode

Returns the IP address throttling delay, in seconds.
public ipDelay ( string $ipAddress ) : integer
$ipAddress string
Résultat integer

log() public méthode

Logs a new throttling entry.
public log ( string $ipAddress = null, Cartalyst\Sentinel\Users\UserInterface $user = null ) : void
$ipAddress string
$user Cartalyst\Sentinel\Users\UserInterface
Résultat void

userDelay() public méthode

Returns the throttling delay for the given user, in seconds.
public userDelay ( Cartalyst\Sentinel\Users\UserInterface $user ) : integer
$user Cartalyst\Sentinel\Users\UserInterface
Résultat integer