public static function between(int $min, int $max, string $encoding = 'UTF-8'): Length
    {
        $length = [$min, $max];
        sort($length);
        return new Length('bt', $length, $encoding);
    }
public static function between(int $min, int $max, string $encoding = 'UTF-8'): Length
    {
        $length = [$min, $max];
        sort($length);
        return new Length('bt', $length, $encoding);
    }
public static function between ( int $ min , int $ max , string $ encoding = 'UTF-8' ) : Length { $ length = [ $ min , $ max ] ; sort ( $ length ) ; return new Length ( 'bt' , $ length , $ encoding ) ; }
Gets a rule that requires strings to have a minimum and maximum length.

@param int $min The minimum length, inclusive
@param int $max The maximum length, inclusive
@param string $encoding The string encoding
@return \Caridea\Validate\Rule\Length the created rule
Gets a rule that requires strings to have a minimum and maximum length .