src/Tool/ProviderRedirectTrait.php
public function setRedirectLimit($limit)
    {
        if (!is_int($limit)) {
            throw new InvalidArgumentException('redirectLimit must be an integer.');
        }

        if ($limit < 1) {
            throw new InvalidArgumentException('redirectLimit must be greater than or equal to one.');
        }

        $this->redirectLimit = $limit;

        return $this;
    }
public function setRedirectLimit($limit)
    {
        if (!is_int($limit)) {
            throw new InvalidArgumentException('redirectLimit must be an integer.');
        }

        if ($limit < 1) {
            throw new InvalidArgumentException('redirectLimit must be greater than or equal to one.');
        }

        $this->redirectLimit = $limit;

        return $this;
    }
public function setRedirectLimit ( $ limit ) { if ( ! is_int ( $ limit ) ) { throw new InvalidArgumentException ( 'redirectLimit must be an integer.' ) ; } if ( $ limit < 1 ) { throw new InvalidArgumentException ( 'redirectLimit must be greater than or equal to one.' ) ; } $ this -> redirectLimit = $ limit ; return $ this ; }
Updates the redirect limit.

@param integer $limit
@return League\OAuth2\Client\Provider\AbstractProvider
@throws InvalidArgumentException
Updates the redirect limit .