Some documentation and bugfixes

This commit is contained in:
Jeroen De Meerleer 2019-05-30 08:33:16 +02:00
parent 1a6fb2f440
commit 912f4e3e21
3 changed files with 3 additions and 5 deletions

View File

@ -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;
}

View File

@ -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

View File

@ -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
{