src/Entity/Inscriptions.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\InscriptionsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. #[ORM\Entity(repositoryClassInscriptionsRepository::class)]
  7. class Inscriptions
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id;
  13.    #[ORM\Column(length200)]
  14.     private ?string $nom;
  15.     #[ORM\Column]
  16.     private ?string $prenoms;
  17.     #[ORM\Column]
  18.     private ?string $fonction;
  19.     
  20.     #[ORM\Column]
  21.     private ?string $telephone;
  22.     
  23.     #[ORM\Column]
  24.     private ?string $mail;
  25.     
  26.     #[ORM\Column]
  27.     private ?string $entreprise;
  28.     
  29.     #[ORM\Column]
  30.     private ?string $siteweb null;
  31.     
  32.     #[ORM\Column]
  33.     private ?string $nbparticipant;
  34.     
  35.     #[ORM\Column]
  36.     private ?string $pays;
  37.     
  38.     #[ORM\Column]
  39.     private ?string $ville;
  40.     
  41.     #[ORM\Column]
  42.     private ?string $boitepostale null;
  43.     
  44.     #[ORM\Column]
  45.     private ?string $whatsapp;
  46.     
  47.     #[ORM\Column]
  48.     private ?string $adresse;
  49.     
  50.     #[ORM\Column]
  51.     private ?string $commentaire;
  52.     #[ORM\ManyToOne(targetEntityFormations::class)]
  53.     #[ORM\JoinColumn(name'formationsid'referencedColumnName'id'nullablefalse)]
  54.     private ?Formations $formation null;
  55.     #[ORM\Column]
  56.     private ?\DateTimeImmutable $created_at null;
  57.     #[ORM\Column]
  58.     private ?\DateTimeImmutable $updated_at null;
  59.     public function __construct(){
  60.         $this->created_at = new \DateTimeImmutable();
  61.         $this->updated_at = new \DateTimeImmutable();
  62.     }
  63.     public function getId(): ?int {return $this->id;}
  64.     
  65.     public function getNom(): string{return $this->nom;}
  66.     public function setNom(string $nom): static{$this->nom $nom;return $this;}
  67.     
  68.     public function getPrenoms(): string{return $this->prenoms;}
  69.     public function setPrenoms(string $prenoms): static{$this->prenoms $prenoms;return $this;}
  70.     
  71.     public function getFonction(): string{return $this->fonction;}
  72.     public function setFonction(string $fonction): static{$this->fonction $fonction;return $this;}
  73.     
  74.     public function getTelephone(): string{return $this->telephone;}
  75.     public function setTelephone(string $telephone): static{$this->telephone $telephone;return $this;}        
  76.         
  77.     public function getMail(): string{return $this->mail;}
  78.     public function setMail(string $mail): static{$this->mail $mail;return $this;}    
  79.     
  80.     public function getEntreprise(): string{return $this->entreprise;}
  81.     public function setEntreprise(string $entreprise): static{$this->entreprise $entreprise;return $this;}   
  82.     
  83.     public function getSiteweb(): string{return $this->siteweb;}
  84.     public function setSiteweb(string $siteweb): static{$this->siteweb $siteweb;return $this;}    
  85.     
  86.     public function getNbparticipant(): string{return $this->nbparticipant;}
  87.     public function setNbparticipant(string $nbparticipant): static{$this->nbparticipant $nbparticipant;return $this;}    
  88.     
  89.     public function getPays(): string{return $this->pays;}
  90.     public function setPays(string $pays): static{$this->pays $pays;return $this;}   
  91.     
  92.     public function getVille(): string{return $this->ville;}
  93.     public function setVille(string $ville): static{$this->ville $ville;return $this;}  
  94.     
  95.     public function getBoitepostale(): string{return $this->boitepostale;}
  96.     public function setBoitepostale(string $boitepostale): static{$this->boitepostale $boitepostale;return $this;}   
  97.     
  98.     public function getWhatsapp(): string{return $this->whatsapp;}
  99.     public function setWhatsapp(string $whatsapp): static{$this->whatsapp $whatsapp;return $this;}    
  100.     
  101.     public function getAdresse(): string{return $this->adresse;}
  102.     public function setAdresse(string $adresse): static{$this->adresse $adresse;return $this;}  
  103.     
  104.     public function getCommentaire(): string{return $this->commentaire;}
  105.     public function setCommentaire(string $commentaire): static{$this->commentaire $commentaire;return $this;}  
  106.         
  107.     public function getFormation(): ?Formations{return $this->formation;}
  108.     public function setFormation(Formations $formation): self{$this->formation $formation;return $this;}
  109.     
  110.     public function getCreatedAt(): ?\DateTimeImmutable{return $this->created_at;}
  111.     public function setCreatedAt(\DateTimeImmutable $created_at): static {$this->created_at $created_at; return $this;}
  112.     
  113.     public function getUpdatedAt(): ?\DateTimeImmutable{return $this->updated_at;}
  114.     public function UpdatedAt(\DateTimeImmutable $updated_at): static{$this->updated_at $updated_at;return $this;}
  115. }