From e402dbe97f48079449e95d1f28d329014194c539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20P?= Date: Tue, 3 Jun 2025 14:11:59 +0200 Subject: [PATCH] Add properties to NotConserved --- src/Entity/NotConserved.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/Entity/NotConserved.php b/src/Entity/NotConserved.php index 730ebe0..d99352c 100644 --- a/src/Entity/NotConserved.php +++ b/src/Entity/NotConserved.php @@ -45,6 +45,12 @@ class NotConserved implements \JsonSerializable #[ORM\Column(name: 'autore_scheda', length: 100, nullable: true)] private ?string $author = null; + #[ORM\Column(name: 'comune', length: 10, nullable: false)] + private ?string $municipality = null; + + #[ORM\Column(name: 'etichetta', length: 100, nullable: false)] + private ?string $label = null; + /** * @var Image[] $images */ @@ -170,6 +176,30 @@ class NotConserved implements \JsonSerializable return $this; } + public function getLabel(): ?string + { + return $this->label; + } + + public function setLabel(?string $label): static + { + $this->label = $label; + + return $this; + } + + public function getMunicipality(): ?string + { + return $this->municipality; + } + + public function setMunicipality(?string $municipality): static + { + $this->municipality = $municipality; + + return $this; + } + /** * @return Image[] */ @@ -198,6 +228,8 @@ class NotConserved implements \JsonSerializable 'period' => $this->period, 'shortDescription' => $this->shortDescription, 'author' => $this->author, + 'municipality' => $this->municipality, + 'label' => $this->label, 'bibliography' => $this->bibliographies, 'documents' => $this->documents, 'images' => $this->images,