/** * Checks if the given barcode has the same book-data as this instance * @param Barcode $compareBarcode The barcode to compare to * @return bool true if it has the same data, else false */ public function sameBookDataAs($compareBarcode) { return $this_subject == $compareBarcode->getSubject() && $this->_class == $compareBarcode->getClass() && $this->_bundle == $compareBarcode->getBundle(); }