<?phpnamespace App\Entity;use App\Repository\StatusRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=StatusRepository::class) */class Status{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $wording; /** * @ORM\OneToMany(targetEntity=Session::class, mappedBy="status") */ private $sessions; /** * @ORM\Column(type="integer") */ private $positioned; public function __construct() { $this->sessions = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getWording(): ?string { return $this->wording; } public function setWording(string $wording): self { $this->wording = $wording; return $this; } /** * @return Collection<int, Session> */ public function getSessions(): Collection { return $this->sessions; } public function addSession(Session $session): self { if (!$this->sessions->contains($session)) { $this->sessions[] = $session; $session->setStatus($this); } return $this; } public function removeSession(Session $session): self { if ($this->sessions->removeElement($session)) { // set the owning side to null (unless already changed) if ($session->getStatus() === $this) { $session->setStatus(null); } } return $this; } public function getPositioned(): ?int { return $this->positioned; } public function setPositioned(int $positioned): self { $this->positioned = $positioned; return $this; }}