public function equals(CrudInterface $comparison_obj) { $returnValue = FALSE; if ($comparison_obj instanceof Location) { if ($this->getName() == $comparison_obj->getName() && $this->getAddress() == $comparison_obj->getAddress() && $this->getAddress2() == $comparison_obj->getAddress2() && $this->getCity() == $comparison_obj->getCity() && $this->getState() == $comparison_obj->getState() && $this->getZip() == $comparison_obj->getZip()) { $returnValue = TRUE; } } return $returnValue; }