Zend\Validator\Barcode\Gtin14
Synopsis
class Gtin14
extends AbstractAdapter
{
- // Inherited members from AbstractAdapter
- protected array $options;
- // methods
- public void __construct()
- // Inherited methods from AbstractAdapter
- public bool hasValidLength()
- public bool hasValidCharacters()
- public bool hasValidChecksum()
- public int|array getLength()
- public int|string|array getCharacters()
- public void getChecksum()
- protected AbstractAdapter setChecksum()
- public AbstractAdapter|bool useChecksum()
- protected AbstractAdapter setLength()
- protected AbstractAdapter setCharacters()
- protected bool gtin()
- protected bool identcode()
- protected bool code25()
- protected bool postnet()
Hierarchy
Members
protected
- $options
—
array
Allowed options for this adapter
Methods
Inherited from Zend\Validator\Barcode\AbstractAdapter
protected
- code25() — Validates the checksum (Modulo 10) CODE25 implementation factor 3
- gtin() — Validates the checksum (Modulo 10) GTIN implementation factor 3
- identcode() — Validates the checksum (Modulo 10) IDENTCODE implementation factors 9 and 4
- postnet() — Validates the checksum () POSTNET implementation
- setCharacters() — Sets the allowed characters of this barcode
- setChecksum() — Sets the checksum validation method
- setLength() — Sets the length of this barcode
public
- getCharacters() — Returns the allowed characters
- getChecksum() — Returns the checksum function name
- 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