S25
extends AbstractBarcode
in package
implements
BarcodeInterface
Standard 2 of 5 barcodes.
Used in airline ticket marking, photofinishing 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
- checksum() : int
- Checksum for standard 2 of 5 barcodes.
- init() : mixed
Properties
$data
protected
array<string|int, mixed>
$data
Methods
__construct()
public
__construct(string $code[, bool $checksum = false ][, mixed $quiet_zone_left = null ][, mixed $quiet_zone_right = null ]) : mixed
Parameters
- $code : string
- $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>checksum()
Checksum for standard 2 of 5 barcodes.
private
checksum(string $code) : int
Parameters
- $code : string
Return values
intinit()
private
init(string $code, bool $checksum) : mixed
Parameters
- $code : string
- $checksum : bool