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;
        }
    }