src/Geolite/Model/AdminLevelCollection.php
protected function checkLevel(int $level)
    {
        if ($level <= 0 || $level > self::MAX_LEVEL_DEPTH) {
            throw new GeoliteException(sprintf(
                'Administrative level should be an integer in [1,%d], %d given',
                self::MAX_LEVEL_DEPTH, $level
            ));
        }
    }
protected function checkLevel(int $level)
    {
        if ($level <= 0 || $level > self::MAX_LEVEL_DEPTH) {
            throw new GeoliteException(sprintf(
                'Administrative level should be an integer in [1,%d], %d given',
                self::MAX_LEVEL_DEPTH, $level
            ));
        }
    }
@param int $level

@throws \OutOfBoundsException