/** * Validates the checksum * * @param string $value The barcode to check the checksum for * @return boolean */ public function checksum($value) { if (strlen($value) == 8) { $this->_checksum = '_issn'; } else { $this->_checksum = '_gtin'; } return parent::checksum($value); }