mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-10-31 20:56:08 +01:00
Some documentation and bugfixes
This commit is contained in:
parent
1a6fb2f440
commit
912f4e3e21
@ -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