<?phpnamespace App\Entity;use App\Repository\UserFicheSatisfactionRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: UserFicheSatisfactionRepository::class)]class UserFicheSatisfaction{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\ManyToOne(inversedBy: 'userFicheSatisfactions')] #[ORM\JoinColumn(nullable: true)] private ?User $user = null; #[ORM\ManyToOne(inversedBy: 'userFicheSatisfactions')] #[ORM\JoinColumn(nullable: false)] private ?DemandeAffectation $demandeAffectation = null; #[ORM\OneToMany(mappedBy: 'userFicheSatisfaction', targetEntity: UserFicheSatisfactionReponse::class, orphanRemoval: true)] private Collection $userFicheSatisfactionReponses; #[ORM\Column(nullable: true)] private ?string $nom = null; #[ORM\Column(nullable: true)] private ?string $domaine = null; #[ORM\Column(nullable: true)] private ?string $nombreSalarie = null; #[ORM\Column(nullable: true)] private ?string $adresse = null; #[ORM\Column(nullable: true)] private ?string $contact = null; #[ORM\Column(nullable: true)] private ?string $email = null; #[ORM\Column(nullable: true)] private ?string $fax = null; #[ORM\Column(nullable: true)] private ?string $remplirPar = null; #[ORM\Column(nullable: true)] private ?string $fonction = null; #[ORM\Column(nullable: true)] private ?int $clientsEnquetes = null; #[ORM\Column(nullable: true)] private ?int $reponses = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $analyseResultat = null; #[ORM\Column] private ?bool $validated = null; #[ORM\OneToOne(inversedBy: 'userFicheSatisfaction', cascade: ['persist', 'remove'])] #[ORM\JoinColumn(nullable: false)] private ?DemandeService $demandeService = null; public function __construct() { $this->userFicheSatisfactionReponses = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getDemandeAffectaion(): ?DemandeAffectation { return $this->demandeAffectation; } public function setDemandeAffectation(?DemandeAffectation $demandeAffectation): self { $this->demandeAffectation = $demandeAffectation; return $this; } /** * @return Collection<int, UserFicheSatisfactionReponse> */ public function getUserFicheSatisfactionReponses(): Collection { return $this->userFicheSatisfactionReponses; } public function addUserFicheSatisfactionReponse(UserFicheSatisfactionReponse $userFicheSatisfactionReponse): self { if (!$this->userFicheSatisfactionReponses->contains($userFicheSatisfactionReponse)) { $this->userFicheSatisfactionReponses->add($userFicheSatisfactionReponse); $userFicheSatisfactionReponse->setUserFicheSatisfaction($this); } return $this; } public function removeUserFicheSatisfactionReponse(UserFicheSatisfactionReponse $userFicheSatisfactionReponse): self { if ($this->userFicheSatisfactionReponses->removeElement($userFicheSatisfactionReponse)) { // set the owning side to null (unless already changed) if ($userFicheSatisfactionReponse->getUserFicheSatisfaction() === $this) { $userFicheSatisfactionReponse->setUserFicheSatisfaction(null); } } return $this; } public function getClientsEnquetes(): ?int { return $this->clientsEnquetes; } public function setClientsEnquetes(?int $clientsEnquetes): self { $this->clientsEnquetes = $clientsEnquetes; return $this; } public function getReponses(): ?int { return $this->reponses; } public function setReponses(?int $reponses): self { $this->reponses = $reponses; return $this; } public function getAnalyseResultat(): ?string { return $this->analyseResultat; } public function setAnalyseResultat(?string $analyseResultat): self { $this->analyseResultat = $analyseResultat; return $this; } public function isValidated(): ?bool { return $this->validated; } public function setValidated(bool $validated): self { $this->validated = $validated; return $this; } public function getDemandeService(): ?DemandeService { return $this->demandeService; } public function setDemandeService(DemandeService $demandeService): static { $this->demandeService = $demandeService; return $this; } /** * Get the value of nom */ public function getNom() { return $this->nom; } /** * Set the value of nom * * @return self */ public function setNom($nom) { $this->nom = $nom; return $this; } /** * Get the value of nombreSalarie */ public function getNombreSalarie() { return $this->nombreSalarie; } /** * Set the value of nombreSalarie * * @return self */ public function setNombreSalarie($nombreSalarie) { $this->nombreSalarie = $nombreSalarie; return $this; } /** * Get the value of adresse */ public function getAdresse() { return $this->adresse; } /** * Set the value of adresse * * @return self */ public function setAdresse($adresse) { $this->adresse = $adresse; return $this; } /** * Get the value of contact */ public function getContact() { return $this->contact; } /** * Set the value of contact * * @return self */ public function setContact($contact) { $this->contact = $contact; return $this; } /** * Get the value of domaine */ public function getDomaine() { return $this->domaine; } /** * Set the value of domaine * * @return self */ public function setDomaine($domaine) { $this->domaine = $domaine; return $this; } /** * Get the value of remplirPar */ public function getRemplirPar() { return $this->remplirPar; } /** * Set the value of remplirPar * * @return self */ public function setRemplirPar($remplirPar) { $this->remplirPar = $remplirPar; return $this; } /** * Get the value of fonction */ public function getFonction() { return $this->fonction; } /** * Set the value of fonction * * @return self */ public function setFonction($fonction) { $this->fonction = $fonction; return $this; } /** * Get the value of email */ public function getEmail() { return $this->email; } /** * Set the value of email * * @return self */ public function setEmail($email) { $this->email = $email; return $this; } /** * Get the value of fax */ public function getFax() { return $this->fax; } /** * Set the value of fax * * @return self */ public function setFax($fax) { $this->fax = $fax; return $this; } public function getDemandeAffectation(): ?DemandeAffectation { return $this->demandeAffectation; }}