mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
implement event settings
This commit is contained in:
parent
d4fbb4b592
commit
7aa2c03abc
14 changed files with 657 additions and 171 deletions
|
|
@ -35,12 +35,18 @@ class User
|
|||
#[ORM\Column(type: Types::ARRAY)]
|
||||
private array $locales = [];
|
||||
|
||||
#[ORM\Column(type: Types::ARRAY)]
|
||||
private array $events = [];
|
||||
|
||||
#[ORM\Column(length: 255)]
|
||||
private ?string $theme = null;
|
||||
|
||||
#[ORM\Column]
|
||||
private ?bool $sensitive = null;
|
||||
|
||||
#[ORM\Column]
|
||||
private ?bool $yggdrasil = null;
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
return $this->id;
|
||||
|
|
@ -137,6 +143,18 @@ class User
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getEvents(): array
|
||||
{
|
||||
return $this->events;
|
||||
}
|
||||
|
||||
public function setEvents(array $events): static
|
||||
{
|
||||
$this->events = $events;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getTheme(): ?string
|
||||
{
|
||||
return $this->theme;
|
||||
|
|
@ -160,4 +178,16 @@ class User
|
|||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isYggdrasil(): ?bool
|
||||
{
|
||||
return $this->yggdrasil;
|
||||
}
|
||||
|
||||
public function setYggdrasil(bool $yggdrasil): static
|
||||
{
|
||||
$this->yggdrasil = $yggdrasil;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue