Add label for Underwater
This commit is contained in:
parent
321a6a4bea
commit
c0d5b38a89
@ -33,6 +33,9 @@ class Underwater implements JsonSerializable
|
||||
|
||||
#[ORM\Column(length: 80, nullable: true, name: 'autore_scheda')]
|
||||
private ?string $author = null;
|
||||
|
||||
#[ORM\Column(length: 80, nullable: false, name: 'etichetta')]
|
||||
private ?string $label = null;
|
||||
|
||||
private ?float $lat = null;
|
||||
|
||||
@ -122,6 +125,18 @@ class Underwater implements JsonSerializable
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getLabel(): ?string
|
||||
{
|
||||
return $this->label;
|
||||
}
|
||||
|
||||
public function setLabel(?string $label): static
|
||||
{
|
||||
$this->label = $label;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getLat(): ?float
|
||||
{
|
||||
return $this->lat;
|
||||
@ -157,6 +172,7 @@ class Underwater implements JsonSerializable
|
||||
'conservationState' => $this->conservationState,
|
||||
'shortDescription' => $this->shortDescription,
|
||||
'author' => $this->author,
|
||||
'label' => $this->label,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user