Postnet
extends AbstractBarcode
in package
implements
BarcodeInterface
POSTNET and PLANET barcodes.
Used by U.S. Postal Service for automated mail sorting
Table of Contents
Interfaces
Properties
- $data : array<string|int, mixed>
Methods
- __construct() : mixed
- getChecksum() : string
- getData() : array<string|int, mixed>
- getKey() : mixed
- getType() : string
- binseqToArray() : array<string|int, mixed>
- Convert binary barcode sequence to barcode array
- init() : mixed
Properties
$data
protected
array<string|int, mixed>
$data
Methods
__construct()
public
__construct(string $code, float $xDim, float $gapWidth[, bool $planet = false ]) : mixed
Parameters
- $code : string
- $xDim : float
- $gapWidth : float
- $planet : bool = false
getChecksum()
public
getChecksum() : string
Return values
stringgetData()
public
getData() : array<string|int, mixed>
Return values
array<string|int, mixed>getKey()
public
getKey(string $key) : mixed
Parameters
- $key : string
getType()
public
getType() : string
Tags
Return values
stringbinseqToArray()
Convert binary barcode sequence to barcode array
protected
binseqToArray(string $seq, array<string|int, mixed> $barcodeData) : array<string|int, mixed>
Parameters
- $seq : string
- $barcodeData : array<string|int, mixed>
Return values
array<string|int, mixed>init()
private
init(string $code, float $gapWidth, bool $planet) : mixed
Parameters
- $code : string
- $gapWidth : float
- $planet : bool