Esempio n. 1
0
 /**
  * Validates the checksum
  *
  * @param  string $value The barcode to check the checksum for
  * @return bool
  */
 public function hasValidChecksum($value)
 {
     if (strlen($value) == 8) {
         $this->setChecksum('issn');
     } else {
         $this->setChecksum('gtin');
     }
     return parent::hasValidChecksum($value);
 }