src/PhoneNumberMatcher.php
protected static function limit($lower, $upper)
    {
        if (($lower < 0) || ($upper <= 0) || ($upper < $lower)) {
            throw new \InvalidArgumentException();
        }

        return '{' . $lower . ',' . $upper . '}';
    }
protected static function limit($lower, $upper)
    {
        if (($lower < 0) || ($upper <= 0) || ($upper < $lower)) {
            throw new \InvalidArgumentException();
        }

        return '{' . $lower . ',' . $upper . '}';
    }
protected static function limit ( $ lower , $ upper ) { if ( ( $ lower < 0 ) || ( $ upper <= 0 ) || ( $ upper < $ lower ) ) { throw new \ InvalidArgumentException ( ) ; } return '{' . $ lower . ',' . $ upper . '}' ; }
Helper function to generate regular expression with an upper and lower limit.

@param int $lower
@param int $upper
@return string
Helper function to generate regular expression with an upper and lower limit .