src/Entity/InscritSession.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Repository\InscritSessionRepository;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\DBAL\Types\Types;
  8. use Doctrine\ORM\Mapping as ORM;
  9. #[ORM\Entity(repositoryClassInscritSessionRepository::class)]
  10. #[ApiResource]
  11. class InscritSession
  12. {
  13.     #[ORM\Id]
  14.     #[ORM\GeneratedValue]
  15.     #[ORM\Column]
  16.     private ?int $id null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $nom null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $prenom null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $email null;
  23.     #[ORM\Column(length255nullabletrue)]
  24.     private ?string $phone null;
  25.     #[ORM\ManyToOne(inversedBy'inscritSessions')]
  26.     private ?Evenement $session null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $mode null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $adresse null;
  31.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  32.     private ?\DateTimeInterface $date null;
  33.     #[ORM\OneToMany(mappedBy'inscrit'targetEntityReglement::class,cascade: ['remove'])]
  34.     private Collection $reglements;
  35.     #[ORM\Column(nullabletrue)]
  36.     private ?bool $isValid null;
  37.     #[ORM\ManyToOne(inversedBy'inscritSessions')]
  38.     private ?User $stagiaire null;
  39.     #[ORM\Column(length255nullabletrue)]
  40.     private ?string $totalmontant null;
  41.     #[ORM\Column(nullabletrue)]
  42.     private ?bool $isAffected null;
  43.     #[ORM\Column(length255nullabletrue)]
  44.     private ?string $certif null;
  45.     #[ORM\Column(nullabletrue)]
  46.     private ?bool $vue null;
  47.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  48.     private ?string $message null;
  49.     #[ORM\OneToMany(mappedBy'inscrit'targetEntityTrace::class,cascade: ['remove'])]
  50.     private Collection $traces;
  51.     #[ORM\OneToMany(mappedBy'inscrit'targetEntitySignature::class)]
  52.     private Collection $signatures;
  53.     #[ORM\Column(nullabletrue)]
  54.     private ?int $count null;
  55.     #[ORM\OneToMany(mappedBy'user'targetEntitySuspensionInscrit::class,cascade: ['remove'])]
  56.     private Collection $suspensionInscrits;
  57.     #[ORM\Column(nullabletrue)]
  58.     private ?bool $isActive null;
  59.     #[ORM\Column(length255nullabletrue)]
  60.     private ?string $disponibilte null;
  61.     #[ORM\Column(length255nullabletrue)]
  62.     private ?string $whatsapp null;
  63.     #[ORM\OneToMany(mappedBy'inscrit'targetEntityCoupon::class,cascade: ['remove'])]
  64.     private Collection $coupons;
  65.     public function __construct()
  66.     {
  67.         $this->reglements = new ArrayCollection();
  68.         $this->traces = new ArrayCollection();
  69.         $this->signatures = new ArrayCollection();
  70.         $this->suspensionInscrits = new ArrayCollection();
  71.         $this->coupons = new ArrayCollection();
  72.     }
  73.     public function getId(): ?int
  74.     {
  75.         return $this->id;
  76.     }
  77.     public function getNom(): ?string
  78.     {
  79.         return $this->nom;
  80.     }
  81.     public function setNom(?string $nom): self
  82.     {
  83.         $this->nom $nom;
  84.         return $this;
  85.     }
  86.     public function getPrenom(): ?string
  87.     {
  88.         return $this->prenom;
  89.     }
  90.     public function setPrenom(?string $prenom): self
  91.     {
  92.         $this->prenom $prenom;
  93.         return $this;
  94.     }
  95.     public function getEmail(): ?string
  96.     {
  97.         return $this->email;
  98.     }
  99.     public function setEmail(?string $email): self
  100.     {
  101.         $this->email $email;
  102.         return $this;
  103.     }
  104.     public function getPhone(): ?string
  105.     {
  106.         return $this->phone;
  107.     }
  108.     public function setPhone(?string $phone): self
  109.     {
  110.         $this->phone $phone;
  111.         return $this;
  112.     }
  113.     public function getSession(): ?Evenement
  114.     {
  115.         return $this->session;
  116.     }
  117.     public function setSession(?Evenement $session): self
  118.     {
  119.         $this->session $session;
  120.         return $this;
  121.     }
  122.     public function getMode(): ?string
  123.     {
  124.         return $this->mode;
  125.     }
  126.     public function setMode(?string $mode): self
  127.     {
  128.         $this->mode $mode;
  129.         return $this;
  130.     }
  131.     public function getAdresse(): ?string
  132.     {
  133.         return $this->adresse;
  134.     }
  135.     public function setAdresse(?string $adresse): self
  136.     {
  137.         $this->adresse $adresse;
  138.         return $this;
  139.     }
  140.     public function getDate(): ?\DateTimeInterface
  141.     {
  142.         return $this->date;
  143.     }
  144.     public function setDate(?\DateTimeInterface $date): self
  145.     {
  146.         $this->date $date;
  147.         return $this;
  148.     }
  149.     /**
  150.      * @return Collection<int, Reglement>
  151.      */
  152.     public function getReglements(): Collection
  153.     {
  154.         return $this->reglements;
  155.     }
  156.     public function addReglement(Reglement $reglement): self
  157.     {
  158.         if (!$this->reglements->contains($reglement)) {
  159.             $this->reglements->add($reglement);
  160.             $reglement->setInscrit($this);
  161.         }
  162.         return $this;
  163.     }
  164.     public function removeReglement(Reglement $reglement): self
  165.     {
  166.         if ($this->reglements->removeElement($reglement)) {
  167.             // set the owning side to null (unless already changed)
  168.             if ($reglement->getInscrit() === $this) {
  169.                 $reglement->setInscrit(null);
  170.             }
  171.         }
  172.         return $this;
  173.     }
  174.     public function isIsValid(): ?bool
  175.     {
  176.         return $this->isValid;
  177.     }
  178.     public function setIsValid(?bool $isValid): self
  179.     {
  180.         $this->isValid $isValid;
  181.         return $this;
  182.     }
  183.     public function getStagiaire(): ?User
  184.     {
  185.         return $this->stagiaire;
  186.     }
  187.     public function setStagiaire(?User $stagiaire): self
  188.     {
  189.         $this->stagiaire $stagiaire;
  190.         return $this;
  191.     }
  192.     public function getTotalmontant(): ?string
  193.     {
  194.         return $this->totalmontant;
  195.     }
  196.     public function setTotalmontant(?string $totalmontant): self
  197.     {
  198.         $this->totalmontant $totalmontant;
  199.         return $this;
  200.     }
  201.     public function isIsAffected(): ?bool
  202.     {
  203.         return $this->isAffected;
  204.     }
  205.     public function setIsAffected(?bool $isAffected): self
  206.     {
  207.         $this->isAffected $isAffected;
  208.         return $this;
  209.     }
  210.     public function getCertif(): ?string
  211.     {
  212.         return $this->certif;
  213.     }
  214.     public function setCertif(?string $certif): self
  215.     {
  216.         $this->certif $certif;
  217.         return $this;
  218.     }
  219.     public function isVue(): ?bool
  220.     {
  221.         return $this->vue;
  222.     }
  223.     public function setVue(?bool $vue): self
  224.     {
  225.         $this->vue $vue;
  226.         return $this;
  227.     }
  228.     public function getMessage(): ?string
  229.     {
  230.         return $this->message;
  231.     }
  232.     public function setMessage(?string $message): self
  233.     {
  234.         $this->message $message;
  235.         return $this;
  236.     }
  237.     /**
  238.      * @return Collection<int, Trace>
  239.      */
  240.     public function getTraces(): Collection
  241.     {
  242.         return $this->traces;
  243.     }
  244.     public function addTrace(Trace $trace): self
  245.     {
  246.         if (!$this->traces->contains($trace)) {
  247.             $this->traces->add($trace);
  248.             $trace->setInscrit($this);
  249.         }
  250.         return $this;
  251.     }
  252.     public function removeTrace(Trace $trace): self
  253.     {
  254.         if ($this->traces->removeElement($trace)) {
  255.             // set the owning side to null (unless already changed)
  256.             if ($trace->getInscrit() === $this) {
  257.                 $trace->setInscrit(null);
  258.             }
  259.         }
  260.         return $this;
  261.     }
  262.     /**
  263.      * @return Collection<int, Signature>
  264.      */
  265.     public function getSignatures(): Collection
  266.     {
  267.         return $this->signatures;
  268.     }
  269.     public function addSignature(Signature $signature): self
  270.     {
  271.         if (!$this->signatures->contains($signature)) {
  272.             $this->signatures->add($signature);
  273.             $signature->setInscrit($this);
  274.         }
  275.         return $this;
  276.     }
  277.     public function removeSignature(Signature $signature): self
  278.     {
  279.         if ($this->signatures->removeElement($signature)) {
  280.             // set the owning side to null (unless already changed)
  281.             if ($signature->getInscrit() === $this) {
  282.                 $signature->setInscrit(null);
  283.             }
  284.         }
  285.         return $this;
  286.     }
  287.     public function getCount(): ?int
  288.     {
  289.         return $this->count;
  290.     }
  291.     public function setCount(?int $count): self
  292.     {
  293.         $this->count $count;
  294.         return $this;
  295.     }
  296.     /**
  297.      * @return Collection<int, SuspensionInscrit>
  298.      */
  299.     public function getSuspensionInscrits(): Collection
  300.     {
  301.         return $this->suspensionInscrits;
  302.     }
  303.     public function addSuspensionInscrit(SuspensionInscrit $suspensionInscrit): self
  304.     {
  305.         if (!$this->suspensionInscrits->contains($suspensionInscrit)) {
  306.             $this->suspensionInscrits->add($suspensionInscrit);
  307.             $suspensionInscrit->setUser($this);
  308.         }
  309.         return $this;
  310.     }
  311.     public function removeSuspensionInscrit(SuspensionInscrit $suspensionInscrit): self
  312.     {
  313.         if ($this->suspensionInscrits->removeElement($suspensionInscrit)) {
  314.             // set the owning side to null (unless already changed)
  315.             if ($suspensionInscrit->getUser() === $this) {
  316.                 $suspensionInscrit->setUser(null);
  317.             }
  318.         }
  319.         return $this;
  320.     }
  321.     public function isIsActive(): ?bool
  322.     {
  323.         return $this->isActive;
  324.     }
  325.     public function setIsActive(?bool $isActive): self
  326.     {
  327.         $this->isActive $isActive;
  328.         return $this;
  329.     }
  330.     public function getDisponibilte(): ?string
  331.     {
  332.         return $this->disponibilte;
  333.     }
  334.     public function setDisponibilte(?string $disponibilte): self
  335.     {
  336.         $this->disponibilte $disponibilte;
  337.         return $this;
  338.     }
  339.     public function getWhatsapp(): ?string
  340.     {
  341.         return $this->whatsapp;
  342.     }
  343.     public function setWhatsapp(?string $whatsapp): self
  344.     {
  345.         $this->whatsapp $whatsapp;
  346.         return $this;
  347.     }
  348.     /**
  349.      * @return Collection<int, Coupon>
  350.      */
  351.     public function getCoupons(): Collection
  352.     {
  353.         return $this->coupons;
  354.     }
  355.     public function addCoupon(Coupon $coupon): self
  356.     {
  357.         if (!$this->coupons->contains($coupon)) {
  358.             $this->coupons->add($coupon);
  359.             $coupon->setInscrit($this);
  360.         }
  361.         return $this;
  362.     }
  363.     public function removeCoupon(Coupon $coupon): self
  364.     {
  365.         if ($this->coupons->removeElement($coupon)) {
  366.             // set the owning side to null (unless already changed)
  367.             if ($coupon->getInscrit() === $this) {
  368.                 $coupon->setInscrit(null);
  369.             }
  370.         }
  371.         return $this;
  372.     }
  373. }