Methods

Returns the allowed characters

getCharacters() : int | string | array

Returns

intstringarray

Returns if barcode uses a checksum

getChecksum() : bool

Returns

bool

Returns the allowed barcode length

getLength() : int | array

Returns

intarray

Checks for allowed characters within the barcode

hasValidCharacters(string $value) : bool

Parameters

$value

string

The barcode to check for allowed characters

Returns

bool

Validates the checksum

hasValidChecksum(string $value) : bool

Parameters

$value

string

The barcode to check the checksum for

Returns

bool

Checks the length of a barcode

hasValidLength(string $value) : bool

Parameters

$value

string

The barcode to check for proper length

Returns

bool

Sets the checksum validation, if no value is given, the actual setting is returned

useChecksum(bool $check) : \Zend\Validator\Barcode\AbstractAdapter | bool

Parameters

$check

bool

Returns