mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-12-22 04:11:22 +01:00
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:
parent
376bddee67
commit
1fbd910ffb
23
src/Game.php
23
src/Game.php
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user