PHP Class Cartalyst\Sentinel\Checkpoints\ThrottlingException

Inheritance: extends RuntimeExceptio\RuntimeException
Exibir arquivo Open project: cartalyst/sentinel Class Usage Examples

Protected Properties

Property Type Description
$delay string The delay, in seconds.
$type string The throttling type which caused the exception.

Public Methods

Method Description
getDelay ( ) : integer Returns the delay.
getFree ( ) : Carbon\Carbon Returns a Carbon object representing the time which the throttle is lifted.
getType ( ) : string Returns the type.
setDelay ( integer $delay ) : void Sets the delay.
setType ( string $type ) : void Sets the type.

Method Details

getDelay() public method

Returns the delay.
public getDelay ( ) : integer
return integer

getFree() public method

Returns a Carbon object representing the time which the throttle is lifted.
public getFree ( ) : Carbon\Carbon
return Carbon\Carbon

getType() public method

Returns the type.
public getType ( ) : string
return string

setDelay() public method

Sets the delay.
public setDelay ( integer $delay ) : void
$delay integer
return void

setType() public method

Sets the type.
public setType ( string $type ) : void
$type string
return void

Property Details

$delay protected_oe property

The delay, in seconds.
protected string $delay
return string

$type protected_oe property

The throttling type which caused the exception.
protected string $type
return string