chg: dev: outsource the Grid generation and interactions to the backend #4
This commit is contained in:
@@ -44,6 +44,12 @@ class Step
|
||||
#[Column(nullable: true)]
|
||||
private ?bool $wBomb = null;
|
||||
|
||||
#[Column(length: 10, nullable: true)]
|
||||
private ?string $player = null;
|
||||
|
||||
#[Column(type: Types::JSON, nullable: true)]
|
||||
private ?array $revealedCells = null;
|
||||
|
||||
#[ManyToOne(inversedBy: 'steps')]
|
||||
private ?PlayedGame $playedGame = null;
|
||||
|
||||
@@ -86,6 +92,26 @@ class Step
|
||||
$this->wBomb = $wBomb;
|
||||
}
|
||||
|
||||
public function getPlayer(): ?string
|
||||
{
|
||||
return $this->player;
|
||||
}
|
||||
|
||||
public function setPlayer(?string $player): void
|
||||
{
|
||||
$this->player = $player;
|
||||
}
|
||||
|
||||
public function getRevealedCells(): ?array
|
||||
{
|
||||
return $this->revealedCells;
|
||||
}
|
||||
|
||||
public function setRevealedCells(?array $revealedCells): void
|
||||
{
|
||||
$this->revealedCells = $revealedCells;
|
||||
}
|
||||
|
||||
public function getPlayedGame(): ?PlayedGame
|
||||
{
|
||||
return $this->playedGame;
|
||||
|
||||
Reference in New Issue
Block a user