<?phpnamespace App\Entity;use App\Repository\CritereSatisfactionRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: CritereSatisfactionRepository::class)]class CritereSatisfaction{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\OneToMany(targetEntity:UserFicheSatisfactionReponse::class, mappedBy:"critereSatisfaction")] private Collection $userFicheSatisfactionReponse; #[ORM\Column(length: 255)] private ?string $label = null; public function __construct() { $this->userFicheSatisfactionReponse = new ArrayCollection(); } public function getId(): ?int { return $this->id; } /** * Get the value of label */ public function getLabel() { return $this->label; } /** * Set the value of label * * @return self */ public function setLabel($label) { $this->label = $label; return $this; } /** * Get the value of userFicheSatisfactionReponse */ public function getUserFicheSatisfactionReponse() { return $this->userFicheSatisfactionReponse; } /** * Set the value of userFicheSatisfactionReponse * * @return self */ public function setUserFicheSatisfactionReponse($userFicheSatisfactionReponse) { $this->userFicheSatisfactionReponse = $userFicheSatisfactionReponse; return $this; } public function addUserFicheSatisfactionReponse(UserFicheSatisfactionReponse $userFicheSatisfactionReponse): self { if (!$this->userFicheSatisfactionReponse->contains($userFicheSatisfactionReponse)) { $this->userFicheSatisfactionReponse->add($userFicheSatisfactionReponse); $userFicheSatisfactionReponse->setCritereSatisfaction($this); } return $this; } public function removeUserFicheSatisfactionReponse(UserFicheSatisfactionReponse $userFicheSatisfactionReponse): self { if ($this->userFicheSatisfactionReponse->removeElement($userFicheSatisfactionReponse)) { // set the owning side to null (unless already changed) if ($userFicheSatisfactionReponse->getCritereSatisfaction() === $this) { $userFicheSatisfactionReponse->setCritereSatisfaction(null); } } return $this; }}