/**
  * @param $studentId
  * @param $eventTypeId
  * @param $eventGender
  * @return array|null
  */
 private function getAthleteRelayEventRecords($studentId, $eventTypeId, $eventGender)
 {
     $schoolRecord = $this->TrackSQL->getTopRelayRecords($eventTypeId, $eventGender, 1);
     $records = $this->TrackSQL->getStudentRelayRecords($studentId, $eventTypeId);
     foreach ($records as $key => &$record) {
         $result = $record['result'];
         $ResultTime = new ResultTime($result);
         $record['result'] = $ResultTime->getResult();
         $record['isSchoolRecord'] = $schoolRecord[0]['result'] === $result;
         $record['members'] = $this->TrackSQL->getRelayMembersByTeamId($record['trackRelayTeamId']);
     }
     return $records;
 }
 /**
  * @param $eventId
  * @return array
  */
 private function getRelayResults($eventId)
 {
     $results = $this->TrackSQL->getRelayResultsByEventId($eventId);
     $relayResults = array();
     foreach ($results as $result) {
         $Result = new ResultTime($result['result']);
         $result['result'] = $Result->getResult();
         $result['overallPlace'] = $result['overallPlace'] ?: 'n/a';
         $result['members'] = $this->TrackSQL->getRelayMembersByTeamId($result['trackRelayTeamId']);
         $relayResults[] = $result;
     }
     return $relayResults;
 }