Add properties to NotConserved

This commit is contained in:
Nicolò P 2025-06-03 14:11:59 +02:00
parent e5810d94c6
commit e402dbe97f

View File

@ -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,