Fully Qualified Name: | Zend\Validator\Barcode\AdapterInterface |
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 |
Returns the allowed characters
Returns: int|string|array
Returns if barcode uses a checksum
Returns: bool
Returns the allowed barcode length
Returns: int|array
Checks for allowed characters within the barcode
Parameter Name | Type | Description |
---|---|---|
$value | string | The |
Returns: bool
Validates the checksum
Parameter Name | Type | Description |
---|---|---|
$value | string | The |
Returns: bool
Checks the length of a barcode
Parameter Name | Type | Description |
---|---|---|
$value | string | The |
Returns: bool
Sets the checksum validation, if no value is given, the actual setting is returned
Parameter Name | Type | Description |
---|---|---|
$check | bool |
Returns: \AbstractAdapter|bool