package Default

 Methods

Returns the allowed characters

getCharacters() : integer | string | array

Returns

integerstringarray

Returns if barcode uses a checksum

getChecksum() : boolean

Returns

boolean

Returns the allowed barcode length

getLength() : integer | array

Returns

integerarray

Checks for allowed characters within the barcode

hasValidCharacters(string $value) : boolean

Parameters

$value

string

The barcode to check for allowed characters

Returns

boolean

Validates the checksum

hasValidChecksum(string $value) : boolean

Parameters

$value

string

The barcode to check the checksum for

Returns

boolean

Checks the length of a barcode

hasValidLength(string $value) : boolean

Parameters

$value

string

The barcode to check for proper length

Returns

boolean

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

useChecksum(boolean $check = null) : \Zend\Validator\Barcode\AbstractAdapter | boolean

Parameters

$check

boolean

Returns

\Zend\Validator\Barcode\AbstractAdapterboolean