Msi
extends AbstractBarcode
in package
implements
BarcodeInterface
MSI - Variation of Plessey code, with similar applications Contains digits (0 to 9) and encodes the data only in the width of bars.
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(int $code[, bool $checksum = false ][, mixed $quiet_zone_left = null ][, mixed $quiet_zone_right = null ]) : mixed
Parameters
- $code : int
- $checksum : bool = false
- $quiet_zone_left : mixed = null
- $quiet_zone_right : mixed = null
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(int $code, bool $checksum) : mixed
Parameters
- $code : int
- $checksum : bool