Cartalyst\Sentinel\Checkpoints\ThrottleCheckpoint::__construct PHP Method

__construct() public method

Constructor.
public __construct ( Cartalyst\Sentinel\Throttling\ThrottleRepositoryInterface $throttle, string $ipAddress = null ) : void
$throttle Cartalyst\Sentinel\Throttling\ThrottleRepositoryInterface
$ipAddress string
return void
    public function __construct(ThrottleRepositoryInterface $throttle, $ipAddress = null)
    {
        $this->throttle = $throttle;
        if (isset($ipAddress)) {
            $this->ipAddress = $ipAddress;
        }
    }