Table of contents
Namespace: Com\Tecnick\Barcode\Type\Linear\Mailmark
class PostCode
Source: src/Type/Linear/Mailmark/PostCode.php: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.
Constants
INTERNATIONAL
Field value that denotes an international destination
public const INTERNATIONAL = 'XY11 '
Source: src/Type/Linear/Mailmark/PostCode.php:52
LENGTH
Number of characters of the field
public const LENGTH = 9
Source: src/Type/Linear/Mailmark/PostCode.php:45
Methods
getValue()
Get the internal value of the field
public getValue(string $code): int
Parameters:
$code(string)
Returns: int
Throws:
- Exception: if the field matches no pattern