Zend\Validator\Barcode\AdapterInterface
Synopsis
interface AdapterInterface
{
- // methods
- public bool hasValidLength()
- public bool hasValidCharacters()
- public bool hasValidChecksum()
- public int|array getLength()
- public int|string|array getCharacters()
- public bool getChecksum()
- public AbstractAdapter|bool useChecksum()
Methods
public
- getCharacters() — Returns the allowed characters
- getChecksum() — Returns if barcode uses a checksum
- getLength() — Returns the allowed barcode length
- hasValidCharacters() — Checks for allowed characters within the barcode
- hasValidChecksum() — Validates the checksum
- hasValidLength() — Checks the length of a barcode
- useChecksum() — Sets the checksum validation, if no value is given, the actual setting is returned