public static function checkDigitOurNumberAlgorithm($our_number, $base = 9)
    {
        $digit = Utils\Validation::mod11($our_number, $base);

        $digit = ($digit > 1)
            ? $digit - 11
            : 0;

        return abs($digit);
    }
public static function checkDigitOurNumberAlgorithm($our_number, $base = 9)
    {
        $digit = Utils\Validation::mod11($our_number, $base);

        $digit = ($digit > 1)
            ? $digit - 11
            : 0;

        return abs($digit);
    }
public static function checkDigitOurNumberAlgorithm ( $ our_number , $ base = 9 ) { $ digit = Utils \ Validation :: mod11 ( $ our_number , $ base ) ; $ digit = ( $ digit > 1 ) ? $ digit - 11 : 0 ; return abs ( $ digit ) ; }
Calculates Our number check digit

@param string  $our_number Value to calculate the check digit
@param integer $base       @see aryelgois\Utils\Validation::mod11() $base

@return string
Calculates Our number check digit