src/Entity/DemandeDevisSite.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DemandeDevisSiteRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=DemandeDevisSiteRepository::class)
  9.  */
  10. class DemandeDevisSite
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=50)
  20.      */
  21.     private $statut;
  22.     /**
  23.      * @ORM\Column(type="string", length=255)
  24.      */
  25.     private $nom;
  26.     /**
  27.      * @ORM\Column(type="string", length=255)
  28.      */
  29.     private $prenom;
  30.     /**
  31.      * @ORM\Column(type="datetime", nullable=true)
  32.      */
  33.     private $debut;
  34.     /**
  35.      * @ORM\Column(type="datetime", nullable=true)
  36.      */
  37.     private $fin;
  38.     /**
  39.      * @ORM\Column(type="string", length=255)
  40.      */
  41.     private $email;
  42.     /**
  43.      * @ORM\ManyToMany(targetEntity=Formation::class, inversedBy="demandeDevisSites")
  44.      */
  45.     private $formation;
  46.     /**
  47.      * @ORM\Column(type="integer", nullable=true)
  48.      */
  49.     private $nombreStagiaire;
  50.     /**
  51.      * @ORM\Column(type="string", length=255, nullable=true)
  52.      */
  53.     private $nomEntreprise;
  54.     /**
  55.      * @ORM\Column(type="text", nullable=true)
  56.      */
  57.     private $adresse;
  58.     /**
  59.      * @ORM\Column(type="boolean", nullable=true)
  60.      */
  61.     private $traiter;
  62.     /**
  63.      * @ORM\Column(type="datetime", nullable=true)
  64.      */
  65.     private $createdAt;
  66.     public function __construct()
  67.     {
  68.         $this->formation = new ArrayCollection();
  69.     } 
  70.     public function __toString()
  71.     {
  72.         return $this->getNomEntreprise(); 
  73.     }
  74.     public function getId(): ?int
  75.     {
  76.         return $this->id;
  77.     }
  78.     public function getStatut(): ?string
  79.     {
  80.         return $this->statut;
  81.     }
  82.     public function setStatut(string $statut): self
  83.     {
  84.         $this->statut $statut;
  85.         return $this;
  86.     }
  87.     public function getNom(): ?string
  88.     {
  89.         return $this->nom;
  90.     }
  91.     public function setNom(string $nom): self
  92.     {
  93.         $this->nom $nom;
  94.         return $this;
  95.     }
  96.     public function getPrenom(): ?string
  97.     {
  98.         return $this->prenom;
  99.     }
  100.     public function setPrenom(string $prenom): self
  101.     {
  102.         $this->prenom $prenom;
  103.         return $this;
  104.     }
  105.     public function getDebut(): ?\DateTimeInterface
  106.     {
  107.         return $this->debut;
  108.     }
  109.     public function setDebut(?\DateTimeInterface $debut): self
  110.     {
  111.         $this->debut $debut;
  112.         return $this;
  113.     }
  114.     public function getFin(): ?\DateTimeInterface
  115.     {
  116.         return $this->fin;
  117.     }
  118.     public function setFin(?\DateTimeInterface $fin): self
  119.     {
  120.         $this->fin $fin;
  121.         return $this;
  122.     }
  123.     public function getEmail(): ?string
  124.     {
  125.         return $this->email;
  126.     }
  127.     public function setEmail(string $email): self
  128.     {
  129.         $this->email $email;
  130.         return $this;
  131.     }
  132.     /**
  133.      * @return Collection<int, Formation>
  134.      */
  135.     public function getFormation(): Collection
  136.     {
  137.         return $this->formation;
  138.     }
  139.     public function addFormation(Formation $formation, ?int $nombreStagiaire null): self
  140.     {
  141.         if (!$this->formation->contains($formation)) {
  142.             $this->formation[] = $formation
  143.             
  144.         }
  145.         $this->setNombreStagiaire($nombreStagiaire); 
  146.         return $this;
  147.     }
  148.     public function removeFormation(Formation $formation): self
  149.     {
  150.         $this->formation->removeElement($formation);
  151.         return $this;
  152.     }
  153.     public function getNombreStagiaire(): ?int
  154.     {
  155.         return $this->nombreStagiaire;
  156.     }
  157.     public function setNombreStagiaire(?int $nombreStagiaire): self
  158.     {
  159.         $this->nombreStagiaire $nombreStagiaire;
  160.         return $this;
  161.     }
  162.     public function getNomEntreprise(): ?string
  163.     {
  164.         return $this->nomEntreprise;
  165.     }
  166.     public function setNomEntreprise(?string $nomEntreprise): self
  167.     {
  168.         $this->nomEntreprise $nomEntreprise;
  169.         return $this;
  170.     }
  171.     public function getAdresse(): ?string
  172.     {
  173.         return $this->adresse;
  174.     }
  175.     public function setAdresse(?string $adresse): self
  176.     {
  177.         $this->adresse $adresse;
  178.         return $this;
  179.     }
  180.     public function isTraiter(): ?bool
  181.     {
  182.         return $this->traiter;
  183.     }
  184.     public function setTraiter(?bool $traiter): self
  185.     {
  186.         $this->traiter $traiter;
  187.         return $this;
  188.     }
  189.     public function getCreatedAt(): ?\DateTime
  190.     {
  191.         return $this->createdAt;
  192.     }
  193.     public function setCreatedAt(?\DateTime $createdAt): self
  194.     {
  195.         $this->createdAt $createdAt;
  196.         return $this;
  197.     }
  198. }