mirror of
https://gitlab.aliens-lyon.fr/encartes/backend.git
synced 2026-09-11 16:50:46 +02:00
Sauvegarde avant le carnage
This commit is contained in:
@@ -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>
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user