protected function generateLotTrailer()
    {
        $format = '%03.3s%04.4s%01.1s%-9.9s%06.6s%06.6s%017.17s%06.6s%017.17s'
            . '%06.6s%017.17s%06.6s%017.17s%-8.8s%-117.117s';

        $data = [
            $this->shipping_file->assignment->bank->code,
            $this->lot_count,
            '5',
            '',
            $this->current_lot,
            '0', // CS
            '0', // CS
            '0', // CV
            '0', // CV
            '0', // CC
            '0', // CC
            '0', // CD
            '0', // CD
            '',
            '',
        ];

        return vsprintf($format, static::normalize($data));
    }
protected function generateLotTrailer()
    {
        $format = '%03.3s%04.4s%01.1s%-9.9s%06.6s%06.6s%017.17s%06.6s%017.17s'
            . '%06.6s%017.17s%06.6s%017.17s%-8.8s%-117.117s';

        $data = [
            $this->shipping_file->assignment->bank->code,
            $this->lot_count,
            '5',
            '',
            $this->current_lot,
            '0', // CS
            '0', // CS
            '0', // CV
            '0', // CV
            '0', // CC
            '0', // CC
            '0', // CD
            '0', // CD
            '',
            '',
        ];

        return vsprintf($format, static::normalize($data));
    }
protected function generateLotTrailer ( ) { $ format = '%03.3s%04.4s%01.1s%-9.9s%06.6s%06.6s%017.17s%06.6s%017.17s' . '%06.6s%017.17s%06.6s%017.17s%-8.8s%-117.117s' ; $ data = [ $ this -> shipping_file -> assignment -> bank -> code , $ this -> lot_count , '5' , '' , $ this -> current_lot , '0' , // CS '0' , // CS '0' , // CV '0' , // CV '0' , // CC '0' , // CC '0' , // CD '0' , // CD '' , '' , ] ; return vsprintf ( $ format , static :: normalize ( $ data ) ) ; }
Generates LotTrailer registry

@return string
Generates LotTrailer registry