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; 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 public function getSite(): ?Site
{ {
return $this->site; return $this->site;

View File

@ -15,6 +15,9 @@ class Floor
#[ORM\Column(type: "integer")] #[ORM\Column(type: "integer")]
private $id; private $id;
#[ORM\Column(type: "string")]
private $name;
#[ORM\Column(type: "integer")] #[ORM\Column(type: "integer")]
private $altitude; private $altitude;
@ -35,6 +38,14 @@ class Floor
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 getBuilding(): ?Building public function getBuilding(): ?Building
{ {
return $this->building; return $this->building;

View File

@ -15,8 +15,8 @@ class Site
#[ORM\Column(type: "integer")] #[ORM\Column(type: "integer")]
private $id; private $id;
// #[ORM\Column(type: "string")] #[ORM\Column(type: "string")]
// private $name; private $name;
#[ORM\Column(type: "float")] #[ORM\Column(type: "float")]
private $zeroLatitude; private $zeroLatitude;
@ -33,8 +33,15 @@ class Site
} }
public function getId(): ?int 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 public function getZeroLatitude(): ?float