Example #1
0
 public function equals(CrudInterface $comparison_obj)
 {
     $returnValue = FALSE;
     if ($comparison_obj instanceof GamePenalty) {
         if ($this->getGameId() == $comparison_obj->getGameId() && $this->getPeriodId() == $comparison_obj->getPeriodId() && $this->getTime() == $comparison_obj->getTime() && $this->getPenaltyId() == $comparison_obj->getPenaltyId() && $this->getPenaltyDurationId() == $comparison_obj->etPenaltyDurationId() && $this->getSeasonTeamPlayerId() == $comparison_obj->getSeasonTeamPlayerId()) {
             $returnValue = TRUE;
         }
     }
     return $returnValue;
 }