Cartalyst\Sentinel\Throttling\IlluminateThrottleRepository::__construct PHP Method

__construct() public method

Create a new Illuminate throttle repository.
public __construct ( string $model = 'Cartalyst\Sentinel\Throttling\EloquentThrottle', integer $globalInterval = null, integer | array $globalThresholds = null, integer $ipInterval = null, integer | array $ipThresholds = null, integer $userInterval = null, integer | array $userThresholds = null ) : void
$model string
$globalInterval integer
$globalThresholds integer | array
$ipInterval integer
$ipThresholds integer | array
$userInterval integer
$userThresholds integer | array
return void
    public function __construct($model = 'Cartalyst\\Sentinel\\Throttling\\EloquentThrottle', $globalInterval = null, $globalThresholds = null, $ipInterval = null, $ipThresholds = null, $userInterval = null, $userThresholds = null)
    {
        $this->model = $model;
        if (isset($globalInterval)) {
            $this->setGlobalInterval($globalInterval);
        }
        if (isset($globalThresholds)) {
            $this->setGlobalThresholds($globalThresholds);
        }
        if (isset($ipInterval)) {
            $this->setIpInterval($ipInterval);
        }
        if (isset($ipThresholds)) {
            $this->setIpThresholds($ipThresholds);
        }
        if (isset($userInterval)) {
            $this->setUserInterval($userInterval);
        }
        if (isset($userThresholds)) {
            $this->setUserThresholds($userThresholds);
        }
    }