src/Entity/Cab.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CabRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassCabRepository::class)]
  9. #[ORM\Table(name'pieces_remuneration_cab')]
  10. class Cab
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column(type'integer')]
  15.     private $id;
  16.     #[ORM\Column(type'string'length255nullabletrue)]
  17.     private $typePiece;
  18.     #[ORM\Column(type'datetime'nullabletrue)]
  19.     private $dateOperation;
  20.     #[ORM\Column(type'string'length255nullabletrue)]
  21.     private $autreInformation;
  22.     #[ORM\Column(type'string'length255nullabletrue)]
  23.     private $typePaiement;
  24.     #[ORM\Column(type'integer'nullabletrue)]
  25.     private $typeBanque;
  26.     #[ORM\Column(type'string'length255nullabletrue)]
  27.     private $cheqNum;
  28.     #[ORM\Column(type'string'length255nullabletrue)]
  29.     private $cheqType;
  30.     #[ORM\Column(type'string'length255nullabletrue)]
  31.     private $cheqBnq;
  32.  
  33.     #[ORM\OneToMany(mappedBy'cab'targetEntityDet::class)]
  34.     private $dets;
  35.     #[ORM\Column(type'integer'nullabletrue)]
  36.     private $idLocal;
  37.     #[ORM\Column(type'integer'nullabletrue)]
  38.     private $idSysteme;
  39.     #[ORM\Column(type'integer'nullabletrue)]
  40.     private $idSite;
  41.     #[ORM\Column(type'string'length255nullabletrue)]
  42.     private $descriptionSite;
  43.     #[ORM\Column(type'string'length255nullabletrue)]
  44.     private $idOperation;
  45.     #[ORM\Column(type'string'length255nullabletrue)]
  46.     private $descriptionOperation;
  47.     #[ORM\Column(type'integer'nullabletrue)]
  48.     private $idPiece;
  49.     #[ORM\Column(type'datetime'nullabletrue)]
  50.     private $datePiece;
  51.     #[ORM\Column(type'float'nullabletrue)]
  52.     private $montantInitial;
  53.     #[ORM\Column(type'float'nullabletrue)]
  54.     private $montantRemise;
  55.     #[ORM\Column(type'float'nullabletrue)]
  56.     private $montantRetenu;
  57.     #[ORM\Column(type'float'nullabletrue)]
  58.     private $montantNet;
  59.     #[ORM\Column(type'float'nullabletrue)]
  60.     private $montantAutre1;
  61.     #[ORM\Column(type'float'nullabletrue)]
  62.     private $montantAutre2;
  63.     #[ORM\Column(type'integer'nullabletrue)]
  64.     private $flag1 0;
  65.     #[ORM\Column(type'boolean'nullabletrue)]
  66.     private $flag2 0;
  67.     #[ORM\Column(type'boolean'nullabletrue)]
  68.     private $flag3 0;
  69.     #[ORM\Column(type'boolean'nullabletrue)]
  70.     private $flag4 0;
  71.     #[ORM\Column(type'boolean'nullabletrue)]
  72.     private $flag5 0;
  73.     #[ORM\ManyToOne(targetEntityNaturePiece::class, inversedBy'cabs')]
  74.     private $naturePiece;
  75.     #[ORM\Column(type'string'length255nullabletrue)]
  76.     private $idDoc1Asso;
  77.     #[ORM\Column(type'string'length255nullabletrue)]
  78.     private $idDoc2Asso;
  79.     #[ORM\Column(type'datetime'nullabletrue)]
  80.     private $dateInterf;
  81.     #[ORM\Column(type'string'length255nullabletrue)]
  82.     private $descriptionPiece;
  83.     #[ORM\Column(type'datetime'nullabletrue)]
  84.     private $dateCreationPiece;
  85.     #[ORM\Column(type'string'length255nullabletrue)]
  86.     private $descriptionTierPiece;
  87.     #[ORM\Column(type'string'length255nullabletrue)]
  88.     private $idPieceLiee;
  89.     #[ORM\Column(type'string'length255nullabletrue)]
  90.     private $idTierPiece;
  91.     #[ORM\Column(type'string'length255nullabletrue)]
  92.     private $idGrptOps;
  93.     #[ORM\Column(type'string'length255nullabletrue)]
  94.     private $descriptionGrptOps;
  95.     #[ORM\Column(type'string'length255nullabletrue)]
  96.     private $idGrptFinancier;
  97.     #[ORM\Column(type'datetime'nullabletrue)]
  98.     private $dateGrptFinancier;
  99.     #[ORM\Column(type'string'length255nullabletrue)]
  100.     private $descriptionSysteme;
  101.     #[ORM\Column(type'string'length255nullabletrue)]
  102.     private $devise;
  103.     #[ORM\Column(type'string'length255nullabletrue)]
  104.     private $designiationPiece;
  105.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  106.     private ?string $uniqueId null;
  107.     #[ORM\OneToMany(mappedBy'cab'targetEntityCabBordereau::class)]
  108.     private Collection $cabBordereaus;
  109.     public function __construct()
  110.     {
  111.         $this->dets = new ArrayCollection();
  112.         $this->cabBordereaus = new ArrayCollection();
  113.     }
  114.     public function getId(): ?int
  115.     {
  116.         return $this->id;
  117.     }
  118.     public function getTypePiece(): ?string
  119.     {
  120.         return $this->typePiece;
  121.     }
  122.     public function setTypePiece(?string $typePiece): self
  123.     {
  124.         $this->typePiece $typePiece;
  125.         return $this;
  126.     }
  127.     public function getDateOperation(): ?\DateTimeInterface
  128.     {
  129.         return $this->dateOperation;
  130.     }
  131.     public function setDateOperation(?\DateTimeInterface $dateOperation): self
  132.     {
  133.         $this->dateOperation $dateOperation;
  134.         return $this;
  135.     }
  136.     public function getAutreInformation(): ?string
  137.     {
  138.         return $this->autreInformation;
  139.     }
  140.     public function setAutreInformation(?string $autreInformation): self
  141.     {
  142.         $this->autreInformation $autreInformation;
  143.         return $this;
  144.     }
  145.     public function getTypePaiement(): ?string
  146.     {
  147.         return $this->typePaiement;
  148.     }
  149.     public function setTypePaiement(?string $typePaiement): self
  150.     {
  151.         $this->typePaiement $typePaiement;
  152.         return $this;
  153.     }
  154.     public function getTypeBanque(): ?int
  155.     {
  156.         return $this->typeBanque;
  157.     }
  158.     public function setTypeBanque(?int $typeBanque): self
  159.     {
  160.         $this->typeBanque $typeBanque;
  161.         return $this;
  162.     }
  163.     public function getCheqNum(): ?string
  164.     {
  165.         return $this->cheqNum;
  166.     }
  167.     public function setCheqNum(?string $cheqNum): self
  168.     {
  169.         $this->cheqNum $cheqNum;
  170.         return $this;
  171.     }
  172.     public function getCheqType(): ?string
  173.     {
  174.         return $this->cheqType;
  175.     }
  176.     public function setCheqType(?string $cheqType): self
  177.     {
  178.         $this->cheqType $cheqType;
  179.         return $this;
  180.     }
  181.     public function getCheqBnq(): ?string
  182.     {
  183.         return $this->cheqBnq;
  184.     }
  185.     public function setCheqBnq(?string $cheqBnq): self
  186.     {
  187.         $this->cheqBnq $cheqBnq;
  188.         return $this;
  189.     }
  190.     /**
  191.      * @return Collection<int, Det>
  192.      */
  193.     public function getDets(): Collection
  194.     {
  195.         return $this->dets;
  196.     }
  197.     public function addDet(Det $det): self
  198.     {
  199.         if (!$this->dets->contains($det)) {
  200.             $this->dets[] = $det;
  201.             $det->setCab($this);
  202.         }
  203.         return $this;
  204.     }
  205.     public function removeDet(Det $det): self
  206.     {
  207.         if ($this->dets->removeElement($det)) {
  208.             // set the owning side to null (unless already changed)
  209.             if ($det->getCab() === $this) {
  210.                 $det->setCab(null);
  211.             }
  212.         }
  213.         return $this;
  214.     }
  215.     public function getIdLocal(): ?int
  216.     {
  217.         return $this->idLocal;
  218.     }
  219.     public function setIdLocal(?int $idLocal): self
  220.     {
  221.         $this->idLocal $idLocal;
  222.         return $this;
  223.     }
  224.     public function getIdSysteme(): ?int
  225.     {
  226.         return $this->idSysteme;
  227.     }
  228.     public function setIdSysteme(?int $idSysteme): self
  229.     {
  230.         $this->idSysteme $idSysteme;
  231.         return $this;
  232.     }
  233.     public function getIdSite(): ?int
  234.     {
  235.         return $this->idSite;
  236.     }
  237.     public function setIdSite(?int $idSite): self
  238.     {
  239.         $this->idSite $idSite;
  240.         return $this;
  241.     }
  242.     public function getDescriptionSite(): ?string
  243.     {
  244.         return $this->descriptionSite;
  245.     }
  246.     public function setDescriptionSite(?string $descriptionSite): self
  247.     {
  248.         $this->descriptionSite $descriptionSite;
  249.         return $this;
  250.     }
  251.     public function getIdOperation(): ?string
  252.     {
  253.         return $this->idOperation;
  254.     }
  255.     public function setIdOperation(?string $idOperation): self
  256.     {
  257.         $this->idOperation $idOperation;
  258.         return $this;
  259.     }
  260.     public function getDescriptionOperation(): ?string
  261.     {
  262.         return $this->descriptionOperation;
  263.     }
  264.     public function setDescriptionOperation(?string $descriptionOperation): self
  265.     {
  266.         $this->descriptionOperation $descriptionOperation;
  267.         return $this;
  268.     }
  269.     public function getIdPiece(): ?int
  270.     {
  271.         return $this->idPiece;
  272.     }
  273.     public function setIdPiece(?int $idPiece): self
  274.     {
  275.         $this->idPiece $idPiece;
  276.         return $this;
  277.     }
  278.     public function getDatePiece(): ?\DateTimeInterface
  279.     {
  280.         return $this->datePiece;
  281.     }
  282.     public function setDatePiece(?\DateTimeInterface $datePiece): self
  283.     {
  284.         $this->datePiece $datePiece;
  285.         return $this;
  286.     }
  287.     public function getMontantInitial(): ?float
  288.     {
  289.         return $this->montantInitial;
  290.     }
  291.     public function setMontantInitial(?float $montantInitial): self
  292.     {
  293.         $this->montantInitial $montantInitial;
  294.         return $this;
  295.     }
  296.     public function getMontantRemise(): ?float
  297.     {
  298.         return $this->montantRemise;
  299.     }
  300.     public function setMontantRemise(?float $montantRemise): self
  301.     {
  302.         $this->montantRemise $montantRemise;
  303.         return $this;
  304.     }
  305.     public function getMontantRetenu(): ?float
  306.     {
  307.         return $this->montantRetenu;
  308.     }
  309.     public function setMontantRetenu(?float $montantRetenu): self
  310.     {
  311.         $this->montantRetenu $montantRetenu;
  312.         return $this;
  313.     }
  314.     public function getMontantNet(): ?float
  315.     {
  316.         return $this->montantNet;
  317.     }
  318.     public function setMontantNet(?float $montantNet): self
  319.     {
  320.         $this->montantNet $montantNet;
  321.         return $this;
  322.     }
  323.     public function getMontantAutre1(): ?float
  324.     {
  325.         return $this->montantAutre1;
  326.     }
  327.     public function setMontantAutre1(?float $montantAutre1): self
  328.     {
  329.         $this->montantAutre1 $montantAutre1;
  330.         return $this;
  331.     }
  332.     public function getMontantAutre2(): ?float
  333.     {
  334.         return $this->montantAutre2;
  335.     }
  336.     public function setMontantAutre2(?float $montantAutre2): self
  337.     {
  338.         $this->montantAutre2 $montantAutre2;
  339.         return $this;
  340.     }
  341.     public function getFlag1(): ?int
  342.     {
  343.         return $this->flag1;
  344.     }
  345.     public function setFlag1(?int $flag1): self
  346.     {
  347.         $this->flag1 $flag1;
  348.         return $this;
  349.     }
  350.     public function isFlag2(): ?bool
  351.     {
  352.         return $this->flag2;
  353.     }
  354.     public function setFlag2(?bool $flag2): self
  355.     {
  356.         $this->flag2 $flag2;
  357.         return $this;
  358.     }
  359.     public function isFlag3(): ?bool
  360.     {
  361.         return $this->flag3;
  362.     }
  363.     public function setFlag3(?bool $flag3): self
  364.     {
  365.         $this->flag3 $flag3;
  366.         return $this;
  367.     }
  368.     public function isFlag4(): ?bool
  369.     {
  370.         return $this->flag4;
  371.     }
  372.     public function setFlag4(?bool $flag4): self
  373.     {
  374.         $this->flag4 $flag4;
  375.         return $this;
  376.     }
  377.     public function isFlag5(): ?bool
  378.     {
  379.         return $this->flag5;
  380.     }
  381.     public function setFlag5(?bool $flag5): self
  382.     {
  383.         $this->flag5 $flag5;
  384.         return $this;
  385.     }
  386.     public function getNaturePiece(): ?NaturePiece
  387.     {
  388.         return $this->naturePiece;
  389.     }
  390.     public function setNaturePiece(?NaturePiece $naturePiece): self
  391.     {
  392.         $this->naturePiece $naturePiece;
  393.         return $this;
  394.     }
  395.     public function getIdDoc1Asso(): ?string
  396.     {
  397.         return $this->idDoc1Asso;
  398.     }
  399.     public function setIdDoc1Asso(?string $idDoc1Asso): self
  400.     {
  401.         $this->idDoc1Asso $idDoc1Asso;
  402.         return $this;
  403.     }
  404.     public function getIdDoc2Asso(): ?string
  405.     {
  406.         return $this->idDoc2Asso;
  407.     }
  408.     public function setIdDoc2Asso(?string $idDoc2Asso): self
  409.     {
  410.         $this->idDoc2Asso $idDoc2Asso;
  411.         return $this;
  412.     }
  413.     public function getDateInterf(): ?\DateTimeInterface
  414.     {
  415.         return $this->dateInterf;
  416.     }
  417.     public function setDateInterf(?\DateTimeInterface $dateInterf): self
  418.     {
  419.         $this->dateInterf $dateInterf;
  420.         return $this;
  421.     }
  422.     public function getDescriptionPiece(): ?string
  423.     {
  424.         return $this->descriptionPiece;
  425.     }
  426.     public function setDescriptionPiece(?string $descriptionPiece): self
  427.     {
  428.         $this->descriptionPiece $descriptionPiece;
  429.         return $this;
  430.     }
  431.     public function getDateCreationPiece(): ?\DateTimeInterface
  432.     {
  433.         return $this->dateCreationPiece;
  434.     }
  435.     public function setDateCreationPiece(?\DateTimeInterface $dateCreationPiece): self
  436.     {
  437.         $this->dateCreationPiece $dateCreationPiece;
  438.         return $this;
  439.     }
  440.     public function getDescriptionTierPiece(): ?string
  441.     {
  442.         return $this->descriptionTierPiece;
  443.     }
  444.     public function setDescriptionTierPiece(?string $descriptionTierPiece): self
  445.     {
  446.         $this->descriptionTierPiece $descriptionTierPiece;
  447.         return $this;
  448.     }
  449.     public function getIdPieceLiee(): ?string
  450.     {
  451.         return $this->idPieceLiee;
  452.     }
  453.     public function setIdPieceLiee(?string $idPieceLiee): self
  454.     {
  455.         $this->idPieceLiee $idPieceLiee;
  456.         return $this;
  457.     }
  458.     public function getIdTierPiece(): ?string
  459.     {
  460.         return $this->idTierPiece;
  461.     }
  462.     public function setIdTierPiece(?string $idTierPiece): self
  463.     {
  464.         $this->idTierPiece $idTierPiece;
  465.         return $this;
  466.     }
  467.     public function getIdGrptOps(): ?string
  468.     {
  469.         return $this->idGrptOps;
  470.     }
  471.     public function setIdGrptOps(?string $idGrptOps): self
  472.     {
  473.         $this->idGrptOps $idGrptOps;
  474.         return $this;
  475.     }
  476.     public function getDescriptionGrptOps(): ?string
  477.     {
  478.         return $this->descriptionGrptOps;
  479.     }
  480.     public function setDescriptionGrptOps(?string $descriptionGrptOps): self
  481.     {
  482.         $this->descriptionGrptOps $descriptionGrptOps;
  483.         return $this;
  484.     }
  485.     public function getIdGrptFinancier(): ?string
  486.     {
  487.         return $this->idGrptFinancier;
  488.     }
  489.     public function setIdGrptFinancier(?string $idGrptFinancier): self
  490.     {
  491.         $this->idGrptFinancier $idGrptFinancier;
  492.         return $this;
  493.     }
  494.     public function getDateGrptFinancier(): ?\DateTimeInterface
  495.     {
  496.         return $this->dateGrptFinancier;
  497.     }
  498.     public function setDateGrptFinancier(?\DateTimeInterface $dateGrptFinancier): self
  499.     {
  500.         $this->dateGrptFinancier $dateGrptFinancier;
  501.         return $this;
  502.     }
  503.     public function getDescriptionSysteme(): ?string
  504.     {
  505.         return $this->descriptionSysteme;
  506.     }
  507.     public function setDescriptionSysteme(?string $descriptionSysteme): self
  508.     {
  509.         $this->descriptionSysteme $descriptionSysteme;
  510.         return $this;
  511.     }
  512.     public function getDevise(): ?string
  513.     {
  514.         return $this->devise;
  515.     }
  516.     public function setDevise(?string $devise): self
  517.     {
  518.         $this->devise $devise;
  519.         return $this;
  520.     }
  521.     public function getDesigniationPiece(): ?string
  522.     {
  523.         return $this->designiationPiece;
  524.     }
  525.     public function setDesigniationPiece(?string $designiationPiece): self
  526.     {
  527.         $this->designiationPiece $designiationPiece;
  528.         return $this;
  529.     }
  530.     public function getUniqueId(): ?string
  531.     {
  532.         return $this->uniqueId;
  533.     }
  534.     public function setUniqueId(?string $uniqueId): self
  535.     {
  536.         $this->uniqueId $uniqueId;
  537.         return $this;
  538.     }
  539.     /**
  540.      * @return Collection<int, CabBordereau>
  541.      */
  542.     public function getCabBordereaus(): Collection
  543.     {
  544.         return $this->cabBordereaus;
  545.     }
  546.     public function addCabBordereau(CabBordereau $cabBordereau): static
  547.     {
  548.         if (!$this->cabBordereaus->contains($cabBordereau)) {
  549.             $this->cabBordereaus->add($cabBordereau);
  550.             $cabBordereau->setCab($this);
  551.         }
  552.         return $this;
  553.     }
  554.     public function removeCabBordereau(CabBordereau $cabBordereau): static
  555.     {
  556.         if ($this->cabBordereaus->removeElement($cabBordereau)) {
  557.             // set the owning side to null (unless already changed)
  558.             if ($cabBordereau->getCab() === $this) {
  559.                 $cabBordereau->setCab(null);
  560.             }
  561.         }
  562.         return $this;
  563.     }
  564. }