<?php
// src/Entity/Settings.php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity]
class Settings
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private ?int $id = null;
#[ORM\Column(type: 'boolean')]
private bool $maintenanceMode = false;
#[ORM\Column(type: 'boolean')]
private bool $darkMode = false;
// Weitere Einstellungen können hier hinzugefügt werden
public function isDarkMode(): bool
{
return $this->darkMode;
}
public function setDarkMode(bool $darkMode): self
{
$this->darkMode = $darkMode;
return $this;
}
public function getId(): ?int
{
return $this->id;
}
public function isMaintenanceMode(): bool
{
return $this->maintenanceMode;
}
public function setMaintenanceMode(bool $maintenanceMode): self
{
$this->maintenanceMode = $maintenanceMode;
return $this;
}
}