Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
212
/
task
/
212
/
root
/
proc
/
self
/
root
/
proc
/
212
/
task
/
212
/
root
/
proc
/
70528
/
cwd
/
src
/
Entity
/
//proc/212/task/212/root/proc/self/root/proc/212/task/212/root/proc/70528/cwd/src/Entity/Guest.php
<?php namespace App\Entity; use App\Repository\GuestRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=GuestRepository::class) */ class Guest { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $firstname; /** * @ORM\Column(type="string", length=255) */ private $lastname; /** * @ORM\Column(type="string", length=255) */ private $email; /** * @ORM\Column(type="string", length=255) */ private $phone; /** * @ORM\OneToMany(targetEntity=Command::class, mappedBy="guest") */ private $commands; public function __construct() { $this->commands = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getFirstname(): ?string { return $this->firstname; } public function setFirstname(string $firstname): self { $this->firstname = $firstname; return $this; } public function getLastname(): ?string { return $this->lastname; } public function setLastname(string $lastname): self { $this->lastname = $lastname; return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(string $email): self { $this->email = $email; return $this; } public function getPhone(): ?string { return $this->phone; } public function setPhone(string $phone): self { $this->phone = $phone; return $this; } /** * @return Collection<int, Command> */ public function getCommands(): Collection { return $this->commands; } public function addCommand(Command $command): self { if (!$this->commands->contains($command)) { $this->commands[] = $command; $command->setGuest($this); } return $this; } public function removeCommand(Command $command): self { if ($this->commands->removeElement($command)) { // set the owning side to null (unless already changed) if ($command->getGuest() === $this) { $command->setGuest(null); } } return $this; } }