Sauvegarde avant le carnage

This commit is contained in:
Kouril42
2023-02-01 16:47:28 +01:00
parent 9b5b36c5eb
commit ce2c643cc6
5 changed files with 205 additions and 13 deletions
+23
View File
@@ -39,6 +39,29 @@ class Place
return $this->id;
}
/**
* @return Collection<int, self>
*/
public function getName(): Collection
{
return $this->names;
}
public function addName(self $name): self
{
if (!$this->names->contains($name)) {
$this->names[] = $name;
}
return $this;
}
public function removeName(self $name): self
{
$this->names->removeElement($name);
return $this;
}
/**
* @return Collection<int, self>
*/