<?phpnamespace App\Entity;use App\Repository\StatusInscritRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=StatusInscritRepository::class) */class StatusInscrit{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $wording; /** * @ORM\Column(type="integer") */ private $position; /** * @ORM\OneToMany(targetEntity=Inscrit::class, mappedBy="statutinscrit") */ private $inscrits; /** * @ORM\OneToMany(targetEntity=DemandeLite::class, mappedBy="status") */ private $demandeLites; public function __construct() { $this->inscrits = new ArrayCollection(); $this->demandeLites = 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; } public function getPosition(): ?int { return $this->position; } public function setPosition(int $position): self { $this->position = $position; return $this; } /** * @return Collection<int, Inscrit> */ public function getInscrits(): Collection { return $this->inscrits; } public function addInscrit(Inscrit $inscrit): self { if (!$this->inscrits->contains($inscrit)) { $this->inscrits[] = $inscrit; $inscrit->setStatutinscrit($this); } return $this; } public function removeInscrit(Inscrit $inscrit): self { if ($this->inscrits->removeElement($inscrit)) { // set the owning side to null (unless already changed) if ($inscrit->getStatutinscrit() === $this) { $inscrit->setStatutinscrit(null); } } return $this; } /** * @return Collection<int, DemandeLite> */ public function getDemandeLites(): Collection { return $this->demandeLites; } public function addDemandeLite(DemandeLite $demandeLite): self { if (!$this->demandeLites->contains($demandeLite)) { $this->demandeLites[] = $demandeLite; $demandeLite->setStatus($this); } return $this; } public function removeDemandeLite(DemandeLite $demandeLite): self { if ($this->demandeLites->removeElement($demandeLite)) { // set the owning side to null (unless already changed) if ($demandeLite->getStatus() === $this) { $demandeLite->setStatus(null); } } return $this; }}