Ajout de name à Floor, Building et Site

This commit is contained in:
Kouril42 2023-02-14 01:51:33 +01:00
parent 5e75888ab7
commit 5546eeb25e
3 changed files with 30 additions and 4 deletions

View File

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

View File

@ -14,6 +14,9 @@ class Floor
#[ORM\GeneratedValue]
#[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;

View File

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