From 1fbd910ffb7a828ff1e6bec56f24383738f1e831 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Sat, 28 Sep 2019 20:17:38 +0200 Subject: [PATCH] Added board property to Pairing and Game Added table-property to Pairing:::Class Added phpdoc blocks Renamed table to board --- src/Game.php | 23 +++++++++++++++++++++++ src/Pairing.php | 23 +++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/src/Game.php b/src/Game.php index 34655b2..28ba8e1 100644 --- a/src/Game.php +++ b/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; + } } diff --git a/src/Pairing.php b/src/Pairing.php index 21c9bd8..8b2d4a6 100644 --- a/src/Pairing.php +++ b/src/Pairing.php @@ -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; + } }