Documentation

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

BarcodeInterface

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

Methods

__construct()

public __construct(string $code, float $xDim, float $gapWidth[, bool $planet = false ]) : mixed
Parameters
$code : string
$xDim : float
$gapWidth : float
$planet : bool = false

getData()

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
inheritdoc
Return values
string

binseqToArray()

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

        
On this page

Search results