protected function formatBankCode()
    {
        $code = $this->title->assignment->bank->code;

        $checksum = Utils\Validation::mod11Pre($code);
        $digit = $checksum * 10 % 11;
        if ($digit == 10) {
            $digit = 0;
        }

        return $code . '-' . $digit;
    }
protected function formatBankCode()
    {
        $code = $this->title->assignment->bank->code;

        $checksum = Utils\Validation::mod11Pre($code);
        $digit = $checksum * 10 % 11;
        if ($digit == 10) {
            $digit = 0;
        }

        return $code . '-' . $digit;
    }
protected function formatBankCode ( ) { $ code = $ this -> title -> assignment -> bank -> code ; $ checksum = Utils \ Validation :: mod11Pre ( $ code ) ; $ digit = $ checksum * 10 % 11 ; if ( $ digit == 10 ) { $ digit = 0 ; } return $ code . '-' . $ digit ; }
Calculates Bank code's check digit and formats it

@return string
Calculates Bank code s check digit and formats it