protected function generateBarcode($value)
    {
        $title = $this->title;

        $value = $title->currency->format($value, 'nomask');
        $barcode = [
            $title->assignment->bank->code,
            $title->getCurrencyCode()->billet,
            '', // Check digit
            $this->dueFactor(),
            BankInterchange\Utils::padNumber($value, 10),
            $this->generateFreeSpace()
        ];
        $barcode[2] = self::checkDigitBarcode(implode('', $barcode));

        return [
            'barcode' => implode('', $barcode),
            'digitable' => self::formatDigitable(...$barcode),
        ];
    }
protected function generateBarcode($value)
    {
        $title = $this->title;

        $value = $title->currency->format($value, 'nomask');
        $barcode = [
            $title->assignment->bank->code,
            $title->getCurrencyCode()->billet,
            '', // Check digit
            $this->dueFactor(),
            BankInterchange\Utils::padNumber($value, 10),
            $this->generateFreeSpace()
        ];
        $barcode[2] = self::checkDigitBarcode(implode('', $barcode));

        return [
            'barcode' => implode('', $barcode),
            'digitable' => self::formatDigitable(...$barcode),
        ];
    }
protected function generateBarcode ( $ value ) { $ title = $ this -> title ; $ value = $ title -> currency -> format ( $ value , 'nomask' ) ; $ barcode = [ $ title -> assignment -> bank -> code , $ title -> getCurrencyCode ( ) -> billet , '' , // Check digit $ this -> dueFactor ( ) , BankInterchange \ Utils :: padNumber ( $ value , 10 ) , $ this -> generateFreeSpace ( ) ] ; $ barcode [ 2 ] = self :: checkDigitBarcode ( implode ( '' , $ barcode ) ) ; return [ 'barcode' => implode ( '' , $ barcode ) , 'digitable' => self :: formatDigitable ( ... $ barcode ) , ] ; }
Generates the barcode data and its digitable line

@param numeric $value Billet value

@return string[]
Generates the barcode data and its digitable line