Table of contents
Namespace: Com\Tecnick\Barcode\Type\Linear\Mailmark
File: PostCode.php line 40
Destination Post Code plus DPS field of a 4-state Mailmark barcode
The field is either the fixed international string or one of six patterns of character types. Each pattern has its own block of values, and the blocks follow one another in the order the patterns are listed, starting at one.
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
Constants
INTERNATIONAL
File: PostCode.php line 52
public string INTERNATIONAL = 'XY11 '
LENGTH
File: PostCode.php line 45
public mixed LENGTH = 9
Methods
getValue()
File: PostCode.php line 140
public getValue(string $code) : int
Parameters
- $code : string
Tags
- throws: Exception if the field matches no pattern
Return values
int