Cartalyst\Sentinel\Checkpoints\ThrottleCheckpoint::__construct PHP Метод

__construct() публичный Метод

Constructor.
public __construct ( Cartalyst\Sentinel\Throttling\ThrottleRepositoryInterface $throttle, string $ipAddress = null ) : void
$throttle Cartalyst\Sentinel\Throttling\ThrottleRepositoryInterface
$ipAddress string
Результат void
    public function __construct(ThrottleRepositoryInterface $throttle, $ipAddress = null)
    {
        $this->throttle = $throttle;
        if (isset($ipAddress)) {
            $this->ipAddress = $ipAddress;
        }
    }