getCharacters()
getChecksum()
getLength()
hasValidCharacters()
hasValidChecksum()
hasValidLength()
useChecksum()
code25()
gtin()
identcode()
postnet()
setCharacters()
setChecksum()
setLength()
$options
getCharacters() : int | string | array
int
string
array
getChecksum() : bool
bool
getLength() : int | array
int
array
hasValidCharacters(string $value) : bool
string
The barcode to check for allowed characters
bool
hasValidChecksum(string $value) : bool
string
The barcode to check the checksum for
bool
hasValidLength(string $value) : bool
string
The barcode to check for proper length
bool
useChecksum(bool $check) : \Zend\Validator\Barcode\AbstractAdapter | bool
code25(string $value) : bool
string
The barcode to validate
bool
gtin(string $value) : bool
string
The barcode to validate
bool
identcode(string $value) : bool
string
The barcode to validate
bool
postnet(string $value) : bool
string
The barcode to validate
bool
setCharacters(int $characters) : \Zend\Validator\Barcode\AbstractAdapter
setChecksum(\Zend\Validator\Barcode\callable $checksum) : \Zend\Validator\Barcode\AbstractAdapter
\Zend\Validator\Barcode\callable
Checksum method to call
setLength(int | array $length) : \Zend\Validator\Barcode\AbstractAdapter