Toevoeging van meer responses op messages
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user