protected static function check($value, $min, $max)
    {
        $length = strlen($value);

        if ($length < $min)
            return self::STATUS_WARNING;

        if ($min <= $length && $length <= $max)
            return self::STATUS_GOOD;

        return self::STATUS_DANGER;
    }
protected static function check($value, $min, $max)
    {
        $length = strlen($value);

        if ($length < $min)
            return self::STATUS_WARNING;

        if ($min <= $length && $length <= $max)
            return self::STATUS_GOOD;

        return self::STATUS_DANGER;
    }
protected static function check ( $ value , $ min , $ max ) { $ length = strlen ( $ value ) ; if ( $ length < $ min ) return self :: STATUS_WARNING ; if ( $ min <= $ length && $ length <= $ max ) return self :: STATUS_GOOD ; return self :: STATUS_DANGER ; }
Check the value with min & max length.

@param  string  $value
@param  int     $min
@param  int     $max

@return string
Check the value with min & max length .