public function enableRateLimiting(int $cycle = null, int $buffer = null)
    {
        $this->rateLimitingEnabled = true;

        if (!is_null($cycle)) {
            $this->rateLimitCycle = $cycle;
        }

        if (!is_null($cycle)) {
            $this->rateLimitCycleBuffer = $buffer;
        }

        return $this;
    }
public function enableRateLimiting(int $cycle = null, int $buffer = null)
    {
        $this->rateLimitingEnabled = true;

        if (!is_null($cycle)) {
            $this->rateLimitCycle = $cycle;
        }

        if (!is_null($cycle)) {
            $this->rateLimitCycleBuffer = $buffer;
        }

        return $this;
    }
public function enableRateLimiting ( int $ cycle = null , int $ buffer = null ) { $ this -> rateLimitingEnabled = true ; if ( ! is_null ( $ cycle ) ) { $ this -> rateLimitCycle = $ cycle ; } if ( ! is_null ( $ cycle ) ) { $ this -> rateLimitCycleBuffer = $ buffer ; } return $ this ; }
Set the rate limiting state to enabled.

@param int|null $cycle  The rate limiting cycle (in ms, default 500ms).
@param int|null $buffer The rate limiting cycle buffer (in ms, default 100ms).

@return self
Set the rate limiting state to enabled .