2019-01-25 17:31:23 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Created by PhpStorm.
|
|
|
|
* User: jeroen
|
|
|
|
* Date: 19/01/19
|
|
|
|
* Time: 14:14
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace JeroenED\Libpairtwo\Models;
|
2019-02-01 15:51:35 +01:00
|
|
|
use JeroenED\Libpairtwo\Enums\Title;
|
|
|
|
use JeroenED\Libpairtwo\Enums\Sex;
|
2019-01-25 17:31:23 +01:00
|
|
|
use DateTime;
|
|
|
|
|
|
|
|
class Player
|
|
|
|
{
|
|
|
|
private $Name;
|
|
|
|
private $Rank;
|
|
|
|
private $FideId;
|
|
|
|
private $ExtraPts;
|
|
|
|
private $KbsbElo;
|
|
|
|
private $dateofbirth;
|
|
|
|
private $KbsbID;
|
|
|
|
private $Points;
|
|
|
|
private $ClubNr;
|
|
|
|
private $ScoreBucholtz;
|
|
|
|
private $ScoreAmerican;
|
|
|
|
private $FideElo;
|
|
|
|
private $Nation;
|
|
|
|
private $Category;
|
|
|
|
private $Title;
|
|
|
|
private $Sex;
|
2019-02-01 15:55:34 +01:00
|
|
|
private $NumberOfTies;
|
2019-01-25 17:31:23 +01:00
|
|
|
private $Absent;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function getName(): string
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
return $this->Name;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $Name
|
|
|
|
*/
|
|
|
|
public function setName($Name): void
|
|
|
|
{
|
|
|
|
$this->Name = $Name;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @return int
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function getRank(): int
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
return $this->Rank;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @param int $Rank
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function setRank(int $Rank): void
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
$this->Rank = $Rank;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @return int
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function getFideId(): int
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
return $this->FideId;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @param int $FideId
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function setFideId(int $FideId): void
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
$this->FideId = $FideId;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @return int
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function getExtraPts(): int
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
return $this->ExtraPts;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @param int $ExtraPts
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function setExtraPts(int $ExtraPts): void
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
$this->ExtraPts = $ExtraPts;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @return int
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function getKbsbElo(): int
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
return $this->KbsbElo;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @param int $KbsbElo
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function setKbsbElo(int $KbsbElo): void
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
$this->KbsbElo = $KbsbElo;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @return DateTime
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function getDateofbirth(): DateTime
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
return $this->dateofbirth;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param DateTime $dateofbirth
|
|
|
|
*/
|
|
|
|
public function setDateofbirth(DateTime $dateofbirth): void
|
|
|
|
{
|
|
|
|
$this->dateofbirth = $dateofbirth;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @return int
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function getKbsbID(): int
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
return $this->KbsbID;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @param int $KbsbID
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function setKbsbID(int $KbsbID): void
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
$this->KbsbID = $KbsbID;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @return float
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function getPoints(): float
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
return $this->Points;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @param float $Points
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function setPoints(float $Points): void
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
2019-02-06 20:47:46 +01:00
|
|
|
$this->Points = $Points;
|
2019-01-25 17:31:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @return int
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function getClubNr(): int
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
return $this->ClubNr;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @param int $ClubNr
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function setClubNr(int $ClubNr): void
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
$this->ClubNr = $ClubNr;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @return float
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function getScoreBucholtz(): float
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
return $this->ScoreBucholtz;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @param float $ScoreBucholtz
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function setScoreBucholtz(float $ScoreBucholtz): void
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
$this->ScoreBucholtz = $ScoreBucholtz;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @return int
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function getScoreAmerican(): int
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
return $this->ScoreAmerican;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @param int $ScoreAmerican
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function setScoreAmerican(int $ScoreAmerican): void
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
2019-02-06 20:54:07 +01:00
|
|
|
$this->ScoreAmerican = $ScoreAmerican;
|
2019-01-25 17:31:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @return int
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function getFideElo(): int
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
return $this->FideElo;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @param int $FideElo
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function setFideElo(int $FideElo): void
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
$this->FideElo = $FideElo;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* example value: BEL
|
|
|
|
*
|
2019-02-11 17:27:26 +01:00
|
|
|
* @return string
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function getNation(): string
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
return $this->Nation;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $Nation
|
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function setNation(string $Nation): void
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
$this->Nation = $Nation;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function getCategory(): string
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
return $this->Category;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $Category
|
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function setCategory(string $Category): void
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
$this->Category = $Category;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @return Title
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function getTitle(): Title
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
return $this->Title;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param Title $Title
|
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function setTitle(Title $Title): void
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
$this->Title = $Title;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @return Sex
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function getSex(): Sex
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
return $this->Sex;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @param Sex $Sex
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function setSex(Sex $Sex): void
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
$this->Sex = $Sex;
|
|
|
|
}
|
|
|
|
|
2019-02-01 15:55:34 +01:00
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @return int
|
2019-02-01 15:55:34 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function getNumberOfTies(): int
|
2019-02-01 15:55:34 +01:00
|
|
|
{
|
|
|
|
return $this->NumberOfTies;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @param int $NumberOfTies
|
2019-02-01 15:55:34 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function setNumberOfTies(int $NumberOfTies): void
|
2019-02-01 15:55:34 +01:00
|
|
|
{
|
|
|
|
$this->NumberOfTies = $NumberOfTies;
|
|
|
|
}
|
|
|
|
|
2019-01-25 17:31:23 +01:00
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @return bool
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function getAbsent(): bool
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
return $this->Absent;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-02-11 17:27:26 +01:00
|
|
|
* @param bool $Absent
|
2019-01-25 17:31:23 +01:00
|
|
|
*/
|
2019-02-11 17:27:26 +01:00
|
|
|
public function setAbsent(bool $Absent): void
|
2019-01-25 17:31:23 +01:00
|
|
|
{
|
|
|
|
$this->Absent = $Absent;
|
|
|
|
}
|
2019-02-01 15:55:34 +01:00
|
|
|
}
|