src/Entity/UserFicheSatisfaction.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\UserFicheSatisfactionRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassUserFicheSatisfactionRepository::class)]
  9. class UserFicheSatisfaction
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\ManyToOne(inversedBy'userFicheSatisfactions')]
  16.     #[ORM\JoinColumn(nullabletrue)]
  17.     private ?User $user null;
  18.     #[ORM\ManyToOne(inversedBy'userFicheSatisfactions')]
  19.     #[ORM\JoinColumn(nullablefalse)]
  20.     private ?DemandeAffectation $demandeAffectation null;
  21.     #[ORM\OneToMany(mappedBy'userFicheSatisfaction'targetEntityUserFicheSatisfactionReponse::class, orphanRemovaltrue)]
  22.     private Collection $userFicheSatisfactionReponses;
  23.     #[ORM\Column(nullabletrue)]
  24.     private ?string $nom null;
  25.     #[ORM\Column(nullabletrue)]
  26.     private ?string $domaine null;
  27.     #[ORM\Column(nullabletrue)]
  28.     private ?string $nombreSalarie null;
  29.     #[ORM\Column(nullabletrue)]
  30.     private ?string $adresse null;
  31.     #[ORM\Column(nullabletrue)]
  32.     private ?string $contact null;
  33.     #[ORM\Column(nullabletrue)]
  34.     private ?string $email null;
  35.     #[ORM\Column(nullabletrue)]
  36.     private ?string $fax null;
  37.     #[ORM\Column(nullabletrue)]
  38.     private ?string $remplirPar null;
  39.     #[ORM\Column(nullabletrue)]
  40.     private ?string $fonction null;
  41.     #[ORM\Column(nullabletrue)]
  42.     private ?int $clientsEnquetes null;
  43.     #[ORM\Column(nullabletrue)]
  44.     private ?int $reponses null;
  45.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  46.     private ?string $analyseResultat null;
  47.  
  48.     #[ORM\Column]
  49.     private ?bool $validated null;
  50.     #[ORM\OneToOne(inversedBy'userFicheSatisfaction'cascade: ['persist''remove'])]
  51.     #[ORM\JoinColumn(nullablefalse)]
  52.     private ?DemandeService $demandeService null;
  53.     public function __construct()
  54.     {
  55.         $this->userFicheSatisfactionReponses = new ArrayCollection();
  56.     }
  57.     public function getId(): ?int
  58.     {
  59.         return $this->id;
  60.     }
  61.     public function getUser(): ?User
  62.     {
  63.         return $this->user;
  64.     }
  65.     public function setUser(?User $user): self
  66.     {
  67.         $this->user $user;
  68.         return $this;
  69.     }
  70.     public function getDemandeAffectaion(): ?DemandeAffectation
  71.     {
  72.         return $this->demandeAffectation;
  73.     }
  74.     public function setDemandeAffectation(?DemandeAffectation $demandeAffectation): self
  75.     {
  76.         $this->demandeAffectation $demandeAffectation;
  77.         return $this;
  78.     }
  79.     /**
  80.      * @return Collection<int, UserFicheSatisfactionReponse>
  81.      */
  82.     public function getUserFicheSatisfactionReponses(): Collection
  83.     {
  84.         return $this->userFicheSatisfactionReponses;
  85.     }
  86.     public function addUserFicheSatisfactionReponse(UserFicheSatisfactionReponse $userFicheSatisfactionReponse): self
  87.     {
  88.         if (!$this->userFicheSatisfactionReponses->contains($userFicheSatisfactionReponse)) {
  89.             $this->userFicheSatisfactionReponses->add($userFicheSatisfactionReponse);
  90.             $userFicheSatisfactionReponse->setUserFicheSatisfaction($this);
  91.         }
  92.         return $this;
  93.     }
  94.     public function removeUserFicheSatisfactionReponse(UserFicheSatisfactionReponse $userFicheSatisfactionReponse): self
  95.     {
  96.         if ($this->userFicheSatisfactionReponses->removeElement($userFicheSatisfactionReponse)) {
  97.             // set the owning side to null (unless already changed)
  98.             if ($userFicheSatisfactionReponse->getUserFicheSatisfaction() === $this) {
  99.                 $userFicheSatisfactionReponse->setUserFicheSatisfaction(null);
  100.             }
  101.         }
  102.         return $this;
  103.     }
  104.     public function getClientsEnquetes(): ?int
  105.     {
  106.         return $this->clientsEnquetes;
  107.     }
  108.     public function setClientsEnquetes(?int $clientsEnquetes): self
  109.     {
  110.         $this->clientsEnquetes $clientsEnquetes;
  111.         return $this;
  112.     }
  113.     public function getReponses(): ?int
  114.     {
  115.         return $this->reponses;
  116.     }
  117.     public function setReponses(?int $reponses): self
  118.     {
  119.         $this->reponses $reponses;
  120.         return $this;
  121.     }
  122.     public function getAnalyseResultat(): ?string
  123.     {
  124.         return $this->analyseResultat;
  125.     }
  126.     public function setAnalyseResultat(?string $analyseResultat): self
  127.     {
  128.         $this->analyseResultat $analyseResultat;
  129.         return $this;
  130.     }
  131.     public function isValidated(): ?bool
  132.     {
  133.         return $this->validated;
  134.     }
  135.     public function setValidated(bool $validated): self
  136.     {
  137.         $this->validated $validated;
  138.         return $this;
  139.     }
  140.     public function getDemandeService(): ?DemandeService
  141.     {
  142.         return $this->demandeService;
  143.     }
  144.     public function setDemandeService(DemandeService $demandeService): static
  145.     {
  146.         $this->demandeService $demandeService;
  147.         return $this;
  148.     }
  149.     /**
  150.      * Get the value of nom
  151.      */ 
  152.     public function getNom()
  153.     {
  154.         return $this->nom;
  155.     }
  156.     /**
  157.      * Set the value of nom
  158.      *
  159.      * @return  self
  160.      */ 
  161.     public function setNom($nom)
  162.     {
  163.         $this->nom $nom;
  164.         return $this;
  165.     }
  166.     /**
  167.      * Get the value of nombreSalarie
  168.      */ 
  169.     public function getNombreSalarie()
  170.     {
  171.         return $this->nombreSalarie;
  172.     }
  173.     /**
  174.      * Set the value of nombreSalarie
  175.      *
  176.      * @return  self
  177.      */ 
  178.     public function setNombreSalarie($nombreSalarie)
  179.     {
  180.         $this->nombreSalarie $nombreSalarie;
  181.         return $this;
  182.     }
  183.     /**
  184.      * Get the value of adresse
  185.      */ 
  186.     public function getAdresse()
  187.     {
  188.         return $this->adresse;
  189.     }
  190.     /**
  191.      * Set the value of adresse
  192.      *
  193.      * @return  self
  194.      */ 
  195.     public function setAdresse($adresse)
  196.     {
  197.         $this->adresse $adresse;
  198.         return $this;
  199.     }
  200.     /**
  201.      * Get the value of contact
  202.      */ 
  203.     public function getContact()
  204.     {
  205.         return $this->contact;
  206.     }
  207.     /**
  208.      * Set the value of contact
  209.      *
  210.      * @return  self
  211.      */ 
  212.     public function setContact($contact)
  213.     {
  214.         $this->contact $contact;
  215.         return $this;
  216.     }
  217.     /**
  218.      * Get the value of domaine
  219.      */ 
  220.     public function getDomaine()
  221.     {
  222.         return $this->domaine;
  223.     }
  224.     /**
  225.      * Set the value of domaine
  226.      *
  227.      * @return  self
  228.      */ 
  229.     public function setDomaine($domaine)
  230.     {
  231.         $this->domaine $domaine;
  232.         return $this;
  233.     }
  234.     /**
  235.      * Get the value of remplirPar
  236.      */ 
  237.     public function getRemplirPar()
  238.     {
  239.         return $this->remplirPar;
  240.     }
  241.     /**
  242.      * Set the value of remplirPar
  243.      *
  244.      * @return  self
  245.      */ 
  246.     public function setRemplirPar($remplirPar)
  247.     {
  248.         $this->remplirPar $remplirPar;
  249.         return $this;
  250.     }
  251.     /**
  252.      * Get the value of fonction
  253.      */ 
  254.     public function getFonction()
  255.     {
  256.         return $this->fonction;
  257.     }
  258.     /**
  259.      * Set the value of fonction
  260.      *
  261.      * @return  self
  262.      */ 
  263.     public function setFonction($fonction)
  264.     {
  265.         $this->fonction $fonction;
  266.         return $this;
  267.     }
  268.     /**
  269.      * Get the value of email
  270.      */ 
  271.     public function getEmail()
  272.     {
  273.         return $this->email;
  274.     }
  275.     /**
  276.      * Set the value of email
  277.      *
  278.      * @return  self
  279.      */ 
  280.     public function setEmail($email)
  281.     {
  282.         $this->email $email;
  283.         return $this;
  284.     }
  285.     /**
  286.      * Get the value of fax
  287.      */ 
  288.     public function getFax()
  289.     {
  290.         return $this->fax;
  291.     }
  292.     /**
  293.      * Set the value of fax
  294.      *
  295.      * @return  self
  296.      */ 
  297.     public function setFax($fax)
  298.     {
  299.         $this->fax $fax;
  300.         return $this;
  301.     }
  302.     public function getDemandeAffectation(): ?DemandeAffectation
  303.     {
  304.         return $this->demandeAffectation;
  305.     }
  306. }