Cartalyst\Sentinel\Checkpoints\ThrottleCheckpoint::__construct PHP Méthode

__construct() public méthode

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