Table of contents
Namespace: Com\Tecnick\Barcode\Type\Linear
File: FixedLengthCheckDigit.php line 42
FixedLengthCheckDigit trait
Shared by the symbologies of a fixed digit count whose last digit is a check digit: the input is either the data digits, which get the check digit appended, or the whole code, which must carry the right one. A shorter input is left padded with zeros. The types belong to different hierarchies, so the rule is shared here.
Tags
- since: 2026-09-01
- category: Library
- author: Nicola Asuni info@tecnick.com
- copyright: 2010-2026 Nicola Asuni - Tecnick.com LTD
- license: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
- link: https://github.com/tecnickcom/tc-lib-barcode