Minor fixes.
This commit is contained in:
parent
ddf09fe00c
commit
c8b93095dc
7 changed files with 26 additions and 32 deletions
|
|
@ -17,10 +17,8 @@ class GameSession
|
|||
protected GameSettings $settings;
|
||||
|
||||
/**
|
||||
*
|
||||
* Create a new GameSession
|
||||
*/
|
||||
//protected $cards;
|
||||
|
||||
public function __construct(GameBoard $board, GameSettings $settings)
|
||||
{
|
||||
$this->board = $board;
|
||||
|
|
@ -28,7 +26,7 @@ class GameSession
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get the board
|
||||
*/
|
||||
public function getBoard() : GameBoard
|
||||
{
|
||||
|
|
@ -36,7 +34,7 @@ class GameSession
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get the board state
|
||||
*/
|
||||
public function getBoardState() : GameBoardState
|
||||
{
|
||||
|
|
@ -44,7 +42,7 @@ class GameSession
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get Cards
|
||||
*/
|
||||
public function getCards() : Collection
|
||||
{
|
||||
|
|
@ -52,7 +50,7 @@ class GameSession
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get Settings
|
||||
*/
|
||||
public function getSettings() : GameSettings
|
||||
{
|
||||
|
|
@ -60,10 +58,11 @@ class GameSession
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Set new settings
|
||||
*/
|
||||
public function setSettings(GameSettings $settings)
|
||||
public function setSettings(GameSettings $settings) : self
|
||||
{
|
||||
$this->settings = $settings;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue