what the fuck
All checks were successful
CI - Build Tonehaus Docker image / tonehaus-ci-build (push) Successful in 1m55s

This commit is contained in:
2025-11-27 20:03:12 +00:00
parent f15d9a9cfd
commit 054e970df9
36 changed files with 1434 additions and 363 deletions

View File

@@ -6,6 +6,9 @@ use App\Repository\SettingRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Setting stores lightweight key/value configuration entries.
*/
#[ORM\Entity(repositoryClass: SettingRepository::class)]
#[ORM\Table(name: 'settings')]
#[ORM\UniqueConstraint(name: 'uniq_setting_name', columns: ['name'])]
@@ -23,11 +26,45 @@ class Setting
#[ORM\Column(type: 'text', nullable: true)]
private ?string $value = null;
public function getId(): ?int { return $this->id; }
public function getName(): string { return $this->name; }
public function setName(string $name): void { $this->name = $name; }
public function getValue(): ?string { return $this->value; }
public function setValue(?string $value): void { $this->value = $value; }
/**
* Returns the unique identifier.
*/
public function getId(): ?int
{
return $this->id;
}
/**
* Returns the configuration key.
*/
public function getName(): string
{
return $this->name;
}
/**
* Sets the configuration key.
*/
public function setName(string $name): void
{
$this->name = $name;
}
/**
* Returns the stored configuration value.
*/
public function getValue(): ?string
{
return $this->value;
}
/**
* Sets the stored configuration value.
*/
public function setValue(?string $value): void
{
$this->value = $value;
}
}