board = $board; $this->settings = $settings; } /** * Get the board */ public function getBoard() : GameBoard { return $this->board; } /** * Get the board state */ public function getBoardState() : GameBoardState { return $this->getBoard()->getState(); } /** * Get Cards */ public function getCards() : Collection { return $this->getBoard()->getCards(); } /** * Get Settings */ public function getSettings() : GameSettings { return $this->settings; } /** * Set new settings */ public function setSettings(GameSettings $settings) : self { $this->settings = $settings; return $this; } }