Toevoeging van meer responses op messages

This commit is contained in:
Frank
2026-01-05 23:37:36 +01:00
parent 10c3dbc066
commit 8e3807e079
10 changed files with 340 additions and 22 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Game\Entity;
use App\Game\Enum\SessionSettingType;
use App\Game\Repository\SessionSettingRepository;
use Doctrine\ORM\Mapping as ORM;
@@ -22,8 +23,8 @@ class SessionSetting
#[ORM\JoinColumn(nullable: true)]
private ?Player $player = null;
#[ORM\Column(length: 255)]
private ?string $name = null;
#[ORM\Column(type: 'string', length: 255, enumType: SessionSettingType::class)]
private ?SessionSettingType $name = null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $value = null;
@@ -57,12 +58,12 @@ class SessionSetting
return $this;
}
public function getName(): ?string
public function getName(): ?SessionSettingType
{
return $this->name;
}
public function setName(string $name): static
public function setName(SessionSettingType $name): static
{
$this->name = $name;