src/Entity/TCnssB00.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TCnssB00Repository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassTCnssB00Repository::class)]
  8. class TCnssB00
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length3nullabletrue)]
  15.     private ?string $typeEnreg null;
  16.     #[ORM\Column(length14nullabletrue)]
  17.     private ?string $identiTransfert null;
  18.     #[ORM\Column(length2nullabletrue)]
  19.     private ?string $cat null;
  20.     #[ORM\Column(length241nullabletrue)]
  21.     private ?string $filler null;
  22.     #[ORM\Column(length6nullabletrue)]
  23.     private ?string $periode null;
  24.     #[ORM\OneToOne(cascade: ['persist''remove'])]
  25.     private ?TCnssA00 $cnssa00 null;
  26.     #[ORM\OneToMany(mappedBy'cnssb00'targetEntityTCnssB01::class)]
  27.     private Collection $tCnssB01s;
  28.     #[ORM\OneToMany(mappedBy'cnssb00'targetEntityTCnssB02::class)]
  29.     private Collection $tCnssB02s;
  30.     #[ORM\OneToMany(mappedBy'cnssb00'targetEntityTCnssB03::class)]
  31.     private Collection $tCnssB03s;
  32.     #[ORM\OneToMany(mappedBy'cnssb00'targetEntityTCnssB04::class)]
  33.     private Collection $tCnssB04s;
  34.     #[ORM\OneToMany(mappedBy'cnssb00'targetEntityTCnssB05::class)]
  35.     private Collection $tCnssB05s;
  36.     #[ORM\OneToMany(mappedBy'cnssb00'targetEntityTCnssB06::class)]
  37.     private Collection $tCnssB06s;
  38.     public function __construct()
  39.     {
  40.         $this->tCnssB01s = new ArrayCollection();
  41.         $this->tCnssB02s = new ArrayCollection();
  42.         $this->tCnssB03s = new ArrayCollection();
  43.         $this->tCnssB04s = new ArrayCollection();
  44.         $this->tCnssB05s = new ArrayCollection();
  45.         $this->tCnssB06s = new ArrayCollection();
  46.     }
  47.     public function getId(): ?int
  48.     {
  49.         return $this->id;
  50.     }
  51.     public function getTypeEnreg(): ?string
  52.     {
  53.         return $this->typeEnreg;
  54.     }
  55.     public function setTypeEnreg(?string $typeEnreg): static
  56.     {
  57.         $this->typeEnreg $typeEnreg;
  58.         return $this;
  59.     }
  60.     public function getIdentiTransfert(): ?string
  61.     {
  62.         return $this->identiTransfert;
  63.     }
  64.     public function setIdentiTransfert(?string $identiTransfert): static
  65.     {
  66.         $this->identiTransfert $identiTransfert;
  67.         return $this;
  68.     }
  69.     public function getCat(): ?string
  70.     {
  71.         return $this->cat;
  72.     }
  73.     public function setCat(?string $cat): static
  74.     {
  75.         $this->cat $cat;
  76.         return $this;
  77.     }
  78.     public function getFiller(): ?string
  79.     {
  80.         return $this->filler;
  81.     }
  82.     public function setFiller(?string $filler): static
  83.     {
  84.         $this->filler $filler;
  85.         return $this;
  86.     }
  87.     public function getPeriode(): ?string
  88.     {
  89.         return $this->periode;
  90.     }
  91.     public function setPeriode(?string $periode): static
  92.     {
  93.         $this->periode $periode;
  94.         return $this;
  95.     }
  96.     public function getCnssa00(): ?TCnssA00
  97.     {
  98.         return $this->cnssa00;
  99.     }
  100.     public function setCnssa00(?TCnssA00 $cnssa00): static
  101.     {
  102.         $this->cnssa00 $cnssa00;
  103.         return $this;
  104.     }
  105.     /**
  106.      * @return Collection<int, TCnssB01>
  107.      */
  108.     public function getTCnssB01s(): Collection
  109.     {
  110.         return $this->tCnssB01s;
  111.     }
  112.     public function addTCnssB01(TCnssB01 $tCnssB01): static
  113.     {
  114.         if (!$this->tCnssB01s->contains($tCnssB01)) {
  115.             $this->tCnssB01s->add($tCnssB01);
  116.             $tCnssB01->setCnssb00($this);
  117.         }
  118.         return $this;
  119.     }
  120.     public function removeTCnssB01(TCnssB01 $tCnssB01): static
  121.     {
  122.         if ($this->tCnssB01s->removeElement($tCnssB01)) {
  123.             // set the owning side to null (unless already changed)
  124.             if ($tCnssB01->getCnssb00() === $this) {
  125.                 $tCnssB01->setCnssb00(null);
  126.             }
  127.         }
  128.         return $this;
  129.     }
  130.     /**
  131.      * @return Collection<int, TCnssB02>
  132.      */
  133.     public function getTCnssB02s(): Collection
  134.     {
  135.         return $this->tCnssB02s;
  136.     }
  137.     public function addTCnssB02(TCnssB02 $tCnssB02): static
  138.     {
  139.         if (!$this->tCnssB02s->contains($tCnssB02)) {
  140.             $this->tCnssB02s->add($tCnssB02);
  141.             $tCnssB02->setCnssb00($this);
  142.         }
  143.         return $this;
  144.     }
  145.     public function removeTCnssB02(TCnssB02 $tCnssB02): static
  146.     {
  147.         if ($this->tCnssB02s->removeElement($tCnssB02)) {
  148.             // set the owning side to null (unless already changed)
  149.             if ($tCnssB02->getCnssb00() === $this) {
  150.                 $tCnssB02->setCnssb00(null);
  151.             }
  152.         }
  153.         return $this;
  154.     }
  155.     /**
  156.      * @return Collection<int, TCnssB03>
  157.      */
  158.     public function getTCnssB03s(): Collection
  159.     {
  160.         return $this->tCnssB03s;
  161.     }
  162.     public function addTCnssB03(TCnssB03 $tCnssB03): static
  163.     {
  164.         if (!$this->tCnssB03s->contains($tCnssB03)) {
  165.             $this->tCnssB03s->add($tCnssB03);
  166.             $tCnssB03->setCnssb00($this);
  167.         }
  168.         return $this;
  169.     }
  170.     public function removeTCnssB03(TCnssB03 $tCnssB03): static
  171.     {
  172.         if ($this->tCnssB03s->removeElement($tCnssB03)) {
  173.             // set the owning side to null (unless already changed)
  174.             if ($tCnssB03->getCnssb00() === $this) {
  175.                 $tCnssB03->setCnssb00(null);
  176.             }
  177.         }
  178.         return $this;
  179.     }
  180.     /**
  181.      * @return Collection<int, TCnssB04>
  182.      */
  183.     public function getTCnssB04s(): Collection
  184.     {
  185.         return $this->tCnssB04s;
  186.     }
  187.     public function addTCnssB04(TCnssB04 $tCnssB04): static
  188.     {
  189.         if (!$this->tCnssB04s->contains($tCnssB04)) {
  190.             $this->tCnssB04s->add($tCnssB04);
  191.             $tCnssB04->setCnssb00($this);
  192.         }
  193.         return $this;
  194.     }
  195.     public function removeTCnssB04(TCnssB04 $tCnssB04): static
  196.     {
  197.         if ($this->tCnssB04s->removeElement($tCnssB04)) {
  198.             // set the owning side to null (unless already changed)
  199.             if ($tCnssB04->getCnssb00() === $this) {
  200.                 $tCnssB04->setCnssb00(null);
  201.             }
  202.         }
  203.         return $this;
  204.     }
  205.     /**
  206.      * @return Collection<int, TCnssB05>
  207.      */
  208.     public function getTCnssB05s(): Collection
  209.     {
  210.         return $this->tCnssB05s;
  211.     }
  212.     public function addTCnssB05(TCnssB05 $tCnssB05): static
  213.     {
  214.         if (!$this->tCnssB05s->contains($tCnssB05)) {
  215.             $this->tCnssB05s->add($tCnssB05);
  216.             $tCnssB05->setCnssb00($this);
  217.         }
  218.         return $this;
  219.     }
  220.     public function removeTCnssB05(TCnssB05 $tCnssB05): static
  221.     {
  222.         if ($this->tCnssB05s->removeElement($tCnssB05)) {
  223.             // set the owning side to null (unless already changed)
  224.             if ($tCnssB05->getCnssb00() === $this) {
  225.                 $tCnssB05->setCnssb00(null);
  226.             }
  227.         }
  228.         return $this;
  229.     }
  230.     /**
  231.      * @return Collection<int, TCnssB06>
  232.      */
  233.     public function getTCnssB06s(): Collection
  234.     {
  235.         return $this->tCnssB06s;
  236.     }
  237.     public function addTCnssB06(TCnssB06 $tCnssB06): static
  238.     {
  239.         if (!$this->tCnssB06s->contains($tCnssB06)) {
  240.             $this->tCnssB06s->add($tCnssB06);
  241.             $tCnssB06->setCnssb00($this);
  242.         }
  243.         return $this;
  244.     }
  245.     public function removeTCnssB06(TCnssB06 $tCnssB06): static
  246.     {
  247.         if ($this->tCnssB06s->removeElement($tCnssB06)) {
  248.             // set the owning side to null (unless already changed)
  249.             if ($tCnssB06->getCnssb00() === $this) {
  250.                 $tCnssB06->setCnssb00(null);
  251.             }
  252.         }
  253.         return $this;
  254.     }
  255. }