Toevoeging van meer responses op messages
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Game\Entity;
|
||||
|
||||
use App\Game\Enum\GameSettingType;
|
||||
use App\Game\Repository\GameSettingRepository;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
@@ -18,8 +19,8 @@ class GameSetting
|
||||
#[ORM\JoinColumn(nullable: false)]
|
||||
private ?Game $game = null;
|
||||
|
||||
#[ORM\Column(length: 255)]
|
||||
private ?string $name = null;
|
||||
#[ORM\Column(type: 'string', length: 255, enumType: GameSettingType::class)]
|
||||
private ?GameSettingType $name = null;
|
||||
|
||||
#[ORM\Column(type: 'text', nullable: true)]
|
||||
private ?string $value = null;
|
||||
@@ -41,12 +42,12 @@ class GameSetting
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getName(): ?string
|
||||
public function getName(): ?GameSettingType
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function setName(string $name): static
|
||||
public function setName(GameSettingType $name): static
|
||||
{
|
||||
$this->name = $name;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user