mirror of
https://gitlab.aliens-lyon.fr/encartes/backend.git
synced 2026-03-17 22:51:04 +01:00
Ajout de name à Floor, Building et Site
This commit is contained in:
parent
5e75888ab7
commit
5546eeb25e
@ -35,6 +35,14 @@ class Building
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function getName(): string
|
||||
{ return $this->id;
|
||||
}
|
||||
public function setName(string $name): self
|
||||
{ $this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getSite(): ?Site
|
||||
{
|
||||
return $this->site;
|
||||
|
||||
@ -15,6 +15,9 @@ class Floor
|
||||
#[ORM\Column(type: "integer")]
|
||||
private $id;
|
||||
|
||||
#[ORM\Column(type: "string")]
|
||||
private $name;
|
||||
|
||||
#[ORM\Column(type: "integer")]
|
||||
private $altitude;
|
||||
|
||||
@ -35,6 +38,14 @@ class Floor
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function getName(): string
|
||||
{ return $this->id;
|
||||
}
|
||||
public function setName(string $name): self
|
||||
{ $this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getBuilding(): ?Building
|
||||
{
|
||||
return $this->building;
|
||||
|
||||
@ -15,8 +15,8 @@ class Site
|
||||
#[ORM\Column(type: "integer")]
|
||||
private $id;
|
||||
|
||||
// #[ORM\Column(type: "string")]
|
||||
// private $name;
|
||||
#[ORM\Column(type: "string")]
|
||||
private $name;
|
||||
|
||||
#[ORM\Column(type: "float")]
|
||||
private $zeroLatitude;
|
||||
@ -33,8 +33,15 @@ class Site
|
||||
}
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
return $this->id;
|
||||
{ return $this->id;
|
||||
}
|
||||
|
||||
public function getName(): string
|
||||
{ return $this->id;
|
||||
}
|
||||
public function setName(string $name): self
|
||||
{ $this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getZeroLatitude(): ?float
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user