Private
Public Access
1
0

chg: dev: outsource the Grid generation and interactions to the backend #4

This commit is contained in:
2026-04-10 12:23:21 +02:00
parent 76143fca3e
commit fe2de91e91
9 changed files with 586 additions and 554 deletions

View File

@@ -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;