Added board property to Pairing and Game

Added table-property to Pairing:::Class


Added phpdoc blocks


Renamed table to board
This commit is contained in:
Jeroen De Meerleer 2019-09-28 20:17:38 +02:00
parent 376bddee67
commit 1fbd910ffb
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
2 changed files with 46 additions and 0 deletions

View File

@ -37,6 +37,9 @@ class Game
/** @var GameResult | null */
private $result;
/** @var int */
private $Board;
/**
* Returns the result for the game
*
@ -128,4 +131,24 @@ class Game
$this->result = $result;
return $this;
}
/**
* Sets the board no of the game
*
* @return int
*/
public function getBoard(): int
{
return $this->Board;
}
/**
* Returns the board no of the game
*
* @param int $Board
*/
public function setBoard(int $Board): void
{
$this->Board = $Board;
}
}

View File

@ -42,6 +42,9 @@ class Pairing
/** @var int */
private $Round;
/** @var int */
private $Board;
/**
* Returns the player of the pairing
*
@ -151,4 +154,24 @@ class Pairing
$this->Round = $Round;
return $this;
}
/**
* Sets the board no of the pairing
*
* @return int
*/
public function getBoard(): int
{
return $this->Board;
}
/**
* Returns the board no of the pairing
*
* @param int $Board
*/
public function setBoard(int $Board): void
{
$this->Board = $Board;
}
}