src/Entity/LigneConvention.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LigneConventionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=LigneConventionRepository::class)
  7.  */
  8. class LigneConvention
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=EnteteConvention::class, inversedBy="ligneConventions")
  18.      */
  19.     private $enteteConvention;
  20.     /**
  21.      * @ORM\Column(type="datetime_immutable", nullable=true)
  22.      */
  23.     private $created_at;
  24.     /**
  25.      * @ORM\OneToOne(targetEntity=Inscrit::class, inversedBy="ligneConvention", cascade={"persist", "remove"})
  26.      */
  27.     private $inscrit;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity=Formation::class, inversedBy="ligneConventions")
  30.      */
  31.     private $Formation;
  32.     /**
  33.      * @ORM\Column(type="integer", nullable=true)
  34.      */
  35.     private $NombreForInscrit;
  36.     /**
  37.      * @ORM\ManyToOne(targetEntity=LigneDevis::class, inversedBy="ligneConventions")
  38.      */
  39.     private $devis;
  40.     public function getId(): ?int
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getEnteteConvention(): ?EnteteConvention
  45.     {
  46.         return $this->enteteConvention;
  47.     }
  48.     public function setEnteteConvention(?EnteteConvention $enteteConvention): self
  49.     {
  50.         $this->enteteConvention $enteteConvention;
  51.         return $this;
  52.     }
  53.     public function getCreatedAt(): ?\DateTimeImmutable
  54.     {
  55.         return $this->created_at;
  56.     }
  57.     public function setCreatedAt(?\DateTimeImmutable $created_at): self
  58.     {
  59.         $this->created_at $created_at;
  60.         return $this;
  61.     }
  62.     public function getInscrit(): ?Inscrit
  63.     {
  64.         return $this->inscrit;
  65.     }
  66.     public function setInscrit(?Inscrit $inscrit): self
  67.     {
  68.         $this->inscrit $inscrit;
  69.         return $this;
  70.     }
  71.     public function getFormation(): ?Formation
  72.     {
  73.         return $this->Formation;
  74.     }
  75.     public function setFormation(?Formation $Formation): self
  76.     {
  77.         $this->Formation $Formation;
  78.         return $this;
  79.     }
  80.     public function getNombreForInscrit(): ?int
  81.     {
  82.         return $this->NombreForInscrit;
  83.     }
  84.     public function setNombreForInscrit(?int $NombreForInscrit): self
  85.     {
  86.         $this->NombreForInscrit $NombreForInscrit;
  87.         return $this;
  88.     }
  89.     public function getDevis(): ?LigneDevis
  90.     {
  91.         return $this->devis;
  92.     }
  93.     public function setDevis(?LigneDevis $devis): self
  94.     {
  95.         $this->devis $devis;
  96.         return $this;
  97.     }
  98. }