Interface AdapterInterface

Summary

Fully Qualified Name: Zend\Validator\Barcode\AdapterInterface

Description

Methods

Name Description Defined By
getCharacters() Returns the allowed characters AdapterInterface
getChecksum() Returns if barcode uses a checksum AdapterInterface
getLength() Returns the allowed barcode length AdapterInterface
hasValidCharacters() Checks for allowed characters within the barcode AdapterInterface
hasValidChecksum() Validates the checksum AdapterInterface
hasValidLength() Checks the length of a barcode AdapterInterface
useChecksum() Sets the checksum validation, if no value is given, the actual setting is returned AdapterInterface

Method Details

getCharacters()

Returns the allowed characters

Returns: int|string|array

getChecksum()

Returns if barcode uses a checksum

Returns: bool

getLength()

Returns the allowed barcode length

Returns: int|array

hasValidCharacters()

Checks for allowed characters within the barcode

Parameter Name Type Description
$value string The

Returns: bool

hasValidChecksum()

Validates the checksum

Parameter Name Type Description
$value string The

Returns: bool

hasValidLength()

Checks the length of a barcode

Parameter Name Type Description
$value string The

Returns: bool

useChecksum()

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

Parameter Name Type Description
$check bool

Returns: \AbstractAdapter|bool

Top