| @@ 230-240 (lines=11) @@ | ||
| 227 | /** |
|
| 228 | * @return string |
|
| 229 | */ |
|
| 230 | public function getFighter1ShortId() |
|
| 231 | { |
|
| 232 | ||
| 233 | $isTeam = $this->group->championship->category->isTeam; |
|
| 234 | if ($isTeam) { |
|
| 235 | return $this->team1 == null ? '' : $this->team1->short_id; |
|
| 236 | } |
|
| 237 | ||
| 238 | return $this->competitor1 == null ? '' : $this->competitor1->short_id; |
|
| 239 | ||
| 240 | } |
|
| 241 | ||
| 242 | /** |
|
| 243 | * @return string |
|
| @@ 245-255 (lines=11) @@ | ||
| 242 | /** |
|
| 243 | * @return string |
|
| 244 | */ |
|
| 245 | public function getFighter2ShortId() |
|
| 246 | { |
|
| 247 | ||
| 248 | $isTeam = $this->group->championship->category->isTeam; |
|
| 249 | if ($isTeam) { |
|
| 250 | return $this->team2 == null ? '' : $this->team2->short_id; |
|
| 251 | } |
|
| 252 | ||
| 253 | return $this->competitor2 == null ? '' : $this->competitor2->short_id; |
|
| 254 | ||
| 255 | } |
|
| 256 | } |
|