2023-10-02 13:13:55 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Entity;
|
|
|
|
|
|
|
|
use App\Repository\UserRepository;
|
2023-10-03 19:35:13 +00:00
|
|
|
use Doctrine\DBAL\Types\Types;
|
2023-10-02 13:13:55 +00:00
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
|
|
|
|
#[ORM\Entity(repositoryClass: UserRepository::class)]
|
|
|
|
class User
|
|
|
|
{
|
|
|
|
#[ORM\Id]
|
|
|
|
#[ORM\GeneratedValue]
|
|
|
|
#[ORM\Column]
|
|
|
|
private ?int $id = null;
|
|
|
|
|
|
|
|
#[ORM\Column(length: 255)]
|
|
|
|
private ?string $address = null;
|
|
|
|
|
|
|
|
#[ORM\Column]
|
|
|
|
private ?int $added = null;
|
|
|
|
|
|
|
|
#[ORM\Column]
|
|
|
|
private ?bool $moderator = null;
|
|
|
|
|
|
|
|
#[ORM\Column]
|
|
|
|
private ?bool $approved = null;
|
|
|
|
|
|
|
|
#[ORM\Column]
|
|
|
|
private ?bool $status = null;
|
|
|
|
|
2023-10-03 19:35:13 +00:00
|
|
|
#[ORM\Column(length: 2)]
|
|
|
|
private ?string $locale = null;
|
|
|
|
|
2023-10-12 21:08:45 +00:00
|
|
|
#[ORM\Column(type: Types::SIMPLE_ARRAY)]
|
2023-10-03 19:35:13 +00:00
|
|
|
private array $locales = [];
|
|
|
|
|
2023-10-12 21:08:45 +00:00
|
|
|
#[ORM\Column(type: Types::SIMPLE_ARRAY)]
|
2023-10-11 19:34:47 +00:00
|
|
|
private array $events = [];
|
|
|
|
|
2023-10-09 13:33:07 +00:00
|
|
|
#[ORM\Column(length: 255)]
|
|
|
|
private ?string $theme = null;
|
|
|
|
|
2023-10-09 13:53:08 +00:00
|
|
|
#[ORM\Column]
|
|
|
|
private ?bool $sensitive = null;
|
|
|
|
|
2023-10-11 19:34:47 +00:00
|
|
|
#[ORM\Column]
|
|
|
|
private ?bool $yggdrasil = null;
|
|
|
|
|
2023-10-02 13:13:55 +00:00
|
|
|
public function getId(): ?int
|
|
|
|
{
|
|
|
|
return $this->id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setId(string $id): static
|
|
|
|
{
|
|
|
|
$this->id = $id;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getAddress(): ?string
|
|
|
|
{
|
|
|
|
return $this->address;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setAddress(string $address): static
|
|
|
|
{
|
|
|
|
$this->address = $address;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getAdded(): ?int
|
|
|
|
{
|
|
|
|
return $this->added;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setAdded(int $added): static
|
|
|
|
{
|
|
|
|
$this->added = $added;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
2023-10-03 19:35:13 +00:00
|
|
|
public function isModerator(): ?bool
|
2023-10-02 13:13:55 +00:00
|
|
|
{
|
2023-10-03 19:35:13 +00:00
|
|
|
return $this->moderator;
|
2023-10-02 13:13:55 +00:00
|
|
|
}
|
|
|
|
|
2023-10-03 19:35:13 +00:00
|
|
|
public function setModerator(bool $moderator): static
|
2023-10-02 13:13:55 +00:00
|
|
|
{
|
2023-10-03 19:35:13 +00:00
|
|
|
$this->moderator = $moderator;
|
2023-10-02 13:13:55 +00:00
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
2023-10-03 19:35:13 +00:00
|
|
|
public function isApproved(): ?bool
|
2023-10-02 13:13:55 +00:00
|
|
|
{
|
2023-10-03 19:35:13 +00:00
|
|
|
return $this->approved;
|
2023-10-02 13:13:55 +00:00
|
|
|
}
|
|
|
|
|
2023-10-03 19:35:13 +00:00
|
|
|
public function setApproved(bool $approved): static
|
2023-10-02 13:13:55 +00:00
|
|
|
{
|
2023-10-03 19:35:13 +00:00
|
|
|
$this->approved = $approved;
|
2023-10-02 13:13:55 +00:00
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
2023-10-03 19:35:13 +00:00
|
|
|
public function isStatus(): ?bool
|
2023-10-02 13:13:55 +00:00
|
|
|
{
|
2023-10-03 19:35:13 +00:00
|
|
|
return $this->status;
|
2023-10-02 13:13:55 +00:00
|
|
|
}
|
|
|
|
|
2023-10-03 19:35:13 +00:00
|
|
|
public function setStatus(bool $status): static
|
2023-10-02 13:13:55 +00:00
|
|
|
{
|
2023-10-03 19:35:13 +00:00
|
|
|
$this->status = $status;
|
2023-10-02 13:13:55 +00:00
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
2023-10-03 19:35:13 +00:00
|
|
|
public function getLocale(): ?string
|
2023-10-02 13:13:55 +00:00
|
|
|
{
|
2023-10-03 19:35:13 +00:00
|
|
|
return $this->locale;
|
2023-10-02 13:13:55 +00:00
|
|
|
}
|
|
|
|
|
2023-10-03 19:35:13 +00:00
|
|
|
public function setLocale(string $locale): static
|
2023-10-02 13:13:55 +00:00
|
|
|
{
|
2023-10-03 19:35:13 +00:00
|
|
|
$this->locale = $locale;
|
2023-10-02 13:13:55 +00:00
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
2023-10-03 19:35:13 +00:00
|
|
|
public function getLocales(): array
|
2023-10-02 13:13:55 +00:00
|
|
|
{
|
2023-10-03 19:35:13 +00:00
|
|
|
return $this->locales;
|
2023-10-02 13:13:55 +00:00
|
|
|
}
|
|
|
|
|
2023-10-03 19:35:13 +00:00
|
|
|
public function setLocales(array $locales): static
|
2023-10-02 13:13:55 +00:00
|
|
|
{
|
2023-10-03 19:35:13 +00:00
|
|
|
$this->locales = $locales;
|
2023-10-02 13:13:55 +00:00
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
2023-10-09 13:33:07 +00:00
|
|
|
|
2023-10-11 19:34:47 +00:00
|
|
|
public function getEvents(): array
|
|
|
|
{
|
|
|
|
return $this->events;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setEvents(array $events): static
|
|
|
|
{
|
|
|
|
$this->events = $events;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
2023-10-09 13:33:07 +00:00
|
|
|
public function getTheme(): ?string
|
|
|
|
{
|
|
|
|
return $this->theme;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setTheme(string $theme): static
|
|
|
|
{
|
|
|
|
$this->theme = $theme;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
2023-10-09 13:53:08 +00:00
|
|
|
|
|
|
|
public function isSensitive(): ?bool
|
|
|
|
{
|
|
|
|
return $this->sensitive;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setSensitive(bool $sensitive): static
|
|
|
|
{
|
|
|
|
$this->sensitive = $sensitive;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
2023-10-11 19:34:47 +00:00
|
|
|
|
|
|
|
public function isYggdrasil(): ?bool
|
|
|
|
{
|
|
|
|
return $this->yggdrasil;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setYggdrasil(bool $yggdrasil): static
|
|
|
|
{
|
|
|
|
$this->yggdrasil = $yggdrasil;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
2023-10-02 13:13:55 +00:00
|
|
|
}
|