public function equals(CrudInterface $comparison_obj) { $returnValue = FALSE; if ($comparison_obj instanceof Player) { if (strtolower($this->getFirstName()) == strtolower($comparison_obj->getFirstName()) && $this->getLastName() == $comparison_obj->getLastName() && $this->getPlayerPositionId() == $comparison_obj->getPlayerPositionId() && $this->getSecondaryPlayerPositionId() == $comparison_obj->getSecondaryPlayerPositionId() && $this->getActiveYN() == $comparison_obj->getActiveYN()) { $returnValue = TRUE; } } return $returnValue; }