protected static function checkDigitBarcode($code)
    {
        $tmp = Utils\Validation::mod11($code);

        $cd = ($tmp == 0 || $tmp == 1 || $tmp == 10)
            ? 1
            : 11 - $tmp;

        return $cd;
    }
protected static function checkDigitBarcode($code)
    {
        $tmp = Utils\Validation::mod11($code);

        $cd = ($tmp == 0 || $tmp == 1 || $tmp == 10)
            ? 1
            : 11 - $tmp;

        return $cd;
    }
protected static function checkDigitBarcode ( $ code ) { $ tmp = Utils \ Validation :: mod11 ( $ code ) ; $ cd = ( $ tmp == 0 || $ tmp == 1 || $ tmp == 10 ) ? 1 : 11 - $ tmp ; return $ cd ; }
Calculates the check digit for Barcode

@param string $code 43 digits
@return string
Calculates the check digit for Barcode