Add columns to Site

This commit is contained in:
Nicolò P 2024-11-26 15:27:05 +01:00
parent 83bd1bb926
commit 3bcdb1bf2d

View File

@ -74,6 +74,12 @@ class Site implements JsonSerializable
#[ORM\Column(name: 'loc_generica', length: 200, nullable: true)] #[ORM\Column(name: 'loc_generica', length: 200, nullable: true)]
private ?string $genericPlace = null; private ?string $genericPlace = null;
#[ORM\Column(name: 'tecniche_ed', nullable: true)]
private ?string $techniques = null;
#[ORM\Column(name: 'autore_scheda', nullable: true)]
private ?string $author = null;
private ?float $lat; private ?float $lat;
private ?float $lng; private ?float $lng;
@ -322,6 +328,30 @@ class Site implements JsonSerializable
return $this; return $this;
} }
public function getTechniques(): ?string
{
return $this->techniques;
}
public function setTechniques(string $techniques): static
{
$this->techniques = $techniques;
return $this;
}
public function getAuthor(): ?string
{
return $this->author;
}
public function setAuthor(string $author): static
{
$this->author = $author;
return $this;
}
public function getLat(): ?float public function getLat(): ?float
{ {
return $this->lat; return $this->lat;
@ -394,6 +424,8 @@ class Site implements JsonSerializable
'ownedBy' => $this->ownedBy, 'ownedBy' => $this->ownedBy,
'images' => $this->images->toArray(), 'images' => $this->images->toArray(),
'documents' => $this->documents, 'documents' => $this->documents,
'techniques' => $this->techniques,
'author' => $this->author,
]; ];
} }
} }