src/Entity/EnteteConvention.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EnteteConventionRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=EnteteConventionRepository::class)
  9.  */
  10. class EnteteConvention
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255, nullable=true)
  20.      */
  21.     private $numero;
  22.     /**
  23.      * @ORM\Column(type="datetime_immutable", nullable=true)
  24.      */
  25.     private $created_at;
  26.     /**
  27.      * @ORM\OneToMany(targetEntity=LigneConvention::class, mappedBy="enteteconvention")
  28.      */
  29.     private $inscrit;
  30.     /**
  31.      * @ORM\OneToMany(targetEntity=LigneConvention::class, mappedBy="enteteConvention")
  32.      */
  33.     private $ligneConventions;
  34.     /**
  35.      * @ORM\OneToMany(targetEntity=Inscrit::class, mappedBy="enteteconvention")
  36.      */
  37.     private $inscrits;
  38.     /**
  39.      * @ORM\Column(type="string", length=255, nullable=true)
  40.      */
  41.     private $typeclient;
  42.     /**
  43.      * @ORM\ManyToOne(targetEntity=Entreprise::class, inversedBy="enteteConventions")
  44.      */
  45.     private $entreprise;
  46.     /**
  47.      * @ORM\ManyToOne(targetEntity=Organisme::class, inversedBy="enteteConventions")
  48.      */
  49.     private $organisme;
  50.     /**
  51.      * @ORM\Column(type="text", nullable=true)
  52.      */
  53.     private $token;
  54.     /**
  55.      * @ORM\Column(type="text", nullable=true)
  56.      */
  57.     private $signature;
  58.     public function __construct()
  59.     {
  60.         $this->inscrit = new ArrayCollection();
  61.         $this->ligneConventions = new ArrayCollection();
  62.         $this->inscrits = new ArrayCollection();
  63.     }
  64.     public function getId(): ?int
  65.     {
  66.         return $this->id;
  67.     }
  68.     public function getNumero(): ?string
  69.     {
  70.         return $this->numero;
  71.     }
  72.     public function setNumero(?string $numero): self
  73.     {
  74.         $this->numero $numero;
  75.         return $this;
  76.     }
  77.     public function getCreatedAt(): ?\DateTimeImmutable
  78.     {
  79.         return $this->created_at;
  80.     }
  81.     public function setCreatedAt(?\DateTimeImmutable $created_at): self
  82.     {
  83.         $this->created_at $created_at;
  84.         return $this;
  85.     }
  86.     /**
  87.      * @return Collection<int, LigneConvention>
  88.      */
  89.     public function getInscrit(): Collection
  90.     {
  91.         return $this->inscrit;
  92.     }
  93.     public function addInscrit(LigneConvention $inscrit): self
  94.     {
  95.         if (!$this->inscrit->contains($inscrit)) {
  96.             $this->inscrit[] = $inscrit;
  97.             $inscrit->setEnteteconvention($this);
  98.         }
  99.         return $this;
  100.     }
  101.     public function removeInscrit(LigneConvention $inscrit): self
  102.     {
  103.         if ($this->inscrit->removeElement($inscrit)) {
  104.             // set the owning side to null (unless already changed)
  105.             if ($inscrit->getEnteteconvention() === $this) {
  106.                 $inscrit->setEnteteconvention(null);
  107.             }
  108.         }
  109.         return $this;
  110.     }
  111.     /**
  112.      * @return Collection<int, LigneConvention>
  113.      */
  114.     public function getLigneConventions(): Collection
  115.     {
  116.         return $this->ligneConventions;
  117.     }
  118.     public function addLigneConvention(LigneConvention $ligneConvention): self
  119.     {
  120.         if (!$this->ligneConventions->contains($ligneConvention)) {
  121.             $this->ligneConventions[] = $ligneConvention;
  122.             $ligneConvention->setEnteteConvention($this);
  123.         }
  124.         return $this;
  125.     }
  126.     public function removeLigneConvention(LigneConvention $ligneConvention): self
  127.     {
  128.         if ($this->ligneConventions->removeElement($ligneConvention)) {
  129.             // set the owning side to null (unless already changed)
  130.             if ($ligneConvention->getEnteteConvention() === $this) {
  131.                 $ligneConvention->setEnteteConvention(null);
  132.             }
  133.         }
  134.         return $this;
  135.     }
  136.     /**
  137.      * @return Collection<int, Inscrit>
  138.      */
  139.     public function getInscrits(): Collection
  140.     {
  141.         return $this->inscrits;
  142.     }
  143.     public function getTypeclient(): ?string
  144.     {
  145.         return $this->typeclient;
  146.     }
  147.     public function setTypeclient(?string $typeclient): self
  148.     {
  149.         $this->typeclient $typeclient;
  150.         return $this;
  151.     }
  152.     public function getEntreprise(): ?entreprise
  153.     {
  154.         return $this->entreprise;
  155.     }
  156.     public function setEntreprise(?entreprise $entreprise): self
  157.     {
  158.         $this->entreprise $entreprise;
  159.         return $this;
  160.     }
  161.     public function getOrganisme(): ?Organisme
  162.     {
  163.         return $this->organisme;
  164.     }
  165.     public function setOrganisme(?Organisme $organisme): self
  166.     {
  167.         $this->organisme $organisme;
  168.         return $this;
  169.     }
  170.     public function getToken(): ?string
  171.     {
  172.         return $this->token;
  173.     }
  174.     public function setToken(?string $token): self
  175.     {
  176.         $this->token $token;
  177.         return $this;
  178.     }
  179.     public function getSignature(): ?string
  180.     {
  181.         return $this->signature;
  182.     }
  183.     public function setSignature(?string $signature): self
  184.     {
  185.         $this->signature $signature;
  186.         return $this;
  187.     }
  188. }