<?phpnamespace App\Entity;use App\Repository\AppelStatutRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Table(name="appelStatut") * @ORM\Entity(repositoryClass=AppelStatutRepository::class) */class AppelStatut{ /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\OneToMany(targetEntity=Appel::class, mappedBy="statut") */ private $appels; /** * @ORM\Column(type="string", length=100) */ private $name; /** * @ORM\Column(type="integer") */ private $joint; /** * @ORM\Column(type="string", length=100, nullable=true) */ private $role; public function __construct() { $this->appels = new ArrayCollection(); } public function getId(): ?int { return $this->id; } /** * @return Collection|Appel[] */ public function getAppels(): Collection { return $this->appels; } public function addAppel(Appel $appel): self { if (!$this->appels->contains($appel)) { $this->appels[] = $appel; $appel->setStatut($this); } return $this; } public function removeAppel(Appel $appel): self { if ($this->appels->contains($appel)) { $this->appels->removeElement($appel); // set the owning side to null (unless already changed) if ($appel->getStatut() === $this) { $appel->setStatut(null); } } return $this; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getJoint(): ?int { return $this->joint; } public function setJoint(int $joint): self { $this->joint = $joint; return $this; } public function getRole(): ?string { return $this->role; } public function setRole(?string $role): self { $this->role = $role; return $this; }}