Updated rechten voor speler. Settings toegevoegd en onderdelen voor game1 toegevoegd.

This commit is contained in:
Frank
2026-01-05 17:07:32 +01:00
parent af13be2196
commit 10c3dbc066
29 changed files with 531 additions and 17 deletions

View File

@@ -0,0 +1,83 @@
<?php
namespace App\Game\Entity;
use App\Game\Repository\SessionSettingRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: SessionSettingRepository::class)]
#[ORM\Table(name: 'session_setting')]
class SessionSetting
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(targetEntity: Session::class)]
#[ORM\JoinColumn(nullable: false)]
private ?Session $session = null;
#[ORM\ManyToOne(targetEntity: Player::class)]
#[ORM\JoinColumn(nullable: true)]
private ?Player $player = null;
#[ORM\Column(length: 255)]
private ?string $name = null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $value = null;
public function getId(): ?int
{
return $this->id;
}
public function getSession(): ?Session
{
return $this->session;
}
public function setSession(?Session $session): static
{
$this->session = $session;
return $this;
}
public function getPlayer(): ?Player
{
return $this->player;
}
public function setPlayer(?Player $player): static
{
$this->player = $player;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): static
{
$this->name = $name;
return $this;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(?string $value): static
{
$this->value = $value;
return $this;
}
}