mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-21 22:17:41 +01:00
Some documentation and bugfixes
This commit is contained in:
parent
a2842a24d2
commit
34a5696ff3
@ -70,7 +70,7 @@ abstract class Player
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getIds(): array
|
||||
public function getIds(): ?array
|
||||
{
|
||||
return $this->Ids;
|
||||
}
|
||||
@ -88,7 +88,7 @@ abstract class Player
|
||||
/**
|
||||
* @return int[]
|
||||
*/
|
||||
public function getElos(): array
|
||||
public function getElos(): ?array
|
||||
{
|
||||
return $this->Elos;
|
||||
}
|
||||
|
@ -458,8 +458,6 @@ class Pairtwo6 extends Pairtwo6Model implements ReaderInterface
|
||||
$player->setBinaryData("TieMatch", $this->readData('Int', substr($swscontents, $offset, $length)));
|
||||
$offset += $length;
|
||||
|
||||
$player->setElos($elos);
|
||||
$player->setIds($ids);
|
||||
$this->getTournament()->addPlayer($player);
|
||||
}
|
||||
// PlayerNames
|
||||
|
@ -264,7 +264,7 @@ class Tournament extends Tiebreaks
|
||||
|
||||
|
||||
/**
|
||||
* @return float|bool
|
||||
* @return float|null
|
||||
*/
|
||||
private function calculateTiebreak(Tiebreak $tiebreak, Player $player, int $tbkey = 0): ?float
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user