src/Entity/GestionComerciale/BordereauLCR.php line 22

Open in your IDE?
  1. <?php
  2. namespace App\Entity\GestionComerciale;
  3. use App\Entity\FO\CompteBancaire;
  4. use App\Entity\Utilisateur\Utilisateur;
  5. use DateTime;
  6. use Doctrine\Common\Collections\ArrayCollection;
  7. use Doctrine\Common\Collections\Collection;
  8. use Doctrine\ORM\Mapping as ORM;
  9. use Gedmo\Mapping\Annotation as Gedmo;
  10. use App\Annotations\SecuredEntity;
  11. /**
  12.  * BordereauLCR
  13.  *
  14.  * @ORM\Table("commerciale__bordereau_lcr")
  15.  * @ORM\Entity(repositoryClass="App\Repository\GestionComerciale\BordereauLCRRepository")
  16.  * @Gedmo\SoftDeleteable(fieldName="dateSuppression",timeAware=false)
  17.  * @SecuredEntity(name="Borderaux LCR", group="COMPTABILITE")
  18.  */
  19. class BordereauLCR
  20. {
  21.     /**
  22.      * @ORM\Column(name="id", type="integer")
  23.      * @ORM\Id
  24.      * @ORM\GeneratedValue(strategy="AUTO")
  25.      */
  26.     private $id;
  27.     
  28.     /**
  29.      * @ORM\Column(name="nb_LCR", type="integer")
  30.      */
  31.     private $nbLCR;
  32.     /**
  33.      * @ORM\Column(name="date", type="datetime")
  34.      */
  35.     private $date;
  36.     
  37.     /**
  38.      * @ORM\Column(name="date_echeance", type="datetime")
  39.      */
  40.     private $dateEcheance;
  41.     
  42.      /**
  43.      * @ORM\Column(name="date_maj", type="datetime", nullable=true)
  44.      * @Gedmo\Timestampable(on="update")
  45.      */
  46.     private $dateMaj;
  47.     /**
  48.      * @ORM\Column(name="reference", type="string", length=255, nullable=true)
  49.      */
  50.     private $reference;
  51.     
  52.     /**
  53.      * @ORM\Column(name="date_supression", type="datetime", nullable=true)
  54.      */
  55.     private $dateSuppression;
  56.     
  57.     /**
  58.      * @ORM\Column(name="domiciliation", type="string", length=255, nullable=true)
  59.      */
  60.     private $domiciliation;
  61.     
  62.     /**
  63.      * @ORM\Column(name="domiciliation2", type="string", length=255, nullable=true)
  64.      */
  65.     private $domiciliation2;
  66.     /**
  67.      * @ORM\Column(name="codeEtablissement", type="string", length=255, nullable=true)
  68.      */
  69.     private $codeEtablissement;
  70.     /**
  71.      * @ORM\Column(name="codeGuichet", type="string", length=255, nullable=true)
  72.      */
  73.     private $codeGuichet;
  74.     /**
  75.      * @ORM\Column(name="numCompte", type="string", length=255, nullable=true)
  76.      */
  77.     private $numCompte;
  78.     /**
  79.      * @ORM\Column(name="cleCompte", type="string", length=255, nullable=true)
  80.      */
  81.     private $cleCompte;
  82.     /**
  83.      * @ORM\Column(name="IBAN", type="string", length=255, nullable=true)
  84.      */
  85.     private $iBAN;
  86.     /**
  87.      * @ORM\Column(name="BIC", type="string", length=255, nullable=true)
  88.      */
  89.     private $bIC;
  90.     
  91.     /**
  92.      * @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur", inversedBy="borderauxLCR")
  93.      * @ORM\JoinColumn(nullable=true)
  94.      */
  95.     private $utilisateur;
  96.     
  97.     /**
  98.     * @ORM\OneToMany(targetEntity="App\Entity\GestionComerciale\LCR", cascade={"persist"},mappedBy="bordereauLCR")
  99.     */
  100.     private $LCRs;
  101.     
  102.    /**
  103.      * @ORM\ManyToOne(targetEntity="App\Entity\FO\CompteBancaire", inversedBy="bordereauxLCR")
  104.      * @ORM\JoinColumn(nullable=true)
  105.      */
  106.     private $compteBancaire;
  107.     
  108.     /**
  109.      * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\ModeEncaissement", inversedBy="bordereauxLCR")
  110.      * @ORM\JoinColumn(nullable=true)
  111.      */
  112.     private $modeEncaissement;
  113.     
  114.     /**
  115.     * @var float
  116.     *
  117.     * @ORM\Column(name="total", type="float", nullable=true)
  118.     */
  119.     private $total;
  120.     
  121.     /**
  122.      * @ORM\Column(name="transfert_compta", type="boolean")
  123.      */
  124.     private $transfertCompta;
  125.     
  126.     /**
  127.      * Constructor
  128.      */
  129.     public function __construct()
  130.     {
  131.         $this->date             = new Datetime();
  132.         $this->dateEcheance     = new Datetime();
  133.         $this->LCRs             = new ArrayCollection();
  134.         $this->transfertCompta  false;
  135.     }
  136.     public function getId(): int
  137.     {
  138.         return $this->id;
  139.     }
  140.     public function setDate(DateTime $date): BordereauLCR
  141.     {
  142.         $this->date $date;
  143.         return $this;
  144.     }
  145.     public function getDate(): DateTime
  146.     {
  147.         return $this->date;
  148.     }
  149.     public function setDateMaj(?DateTime $dateMaj): BordereauLCR
  150.     {
  151.         $this->dateMaj $dateMaj;
  152.         return $this;
  153.     }
  154.     public function getDateMaj(): ?DateTime
  155.     {
  156.         return $this->dateMaj;
  157.     }
  158.     public function setDateSuppression(?DateTime $dateSuppression): BordereauLCR
  159.     {
  160.         $this->dateSuppression $dateSuppression;
  161.         return $this;
  162.     }
  163.     public function getDateSuppression(): ?DateTime
  164.     {
  165.         return $this->dateSuppression;
  166.     }
  167.     public function setDomiciliation(?string $domiciliation): BordereauLCR
  168.     {
  169.         $this->domiciliation $domiciliation;
  170.         return $this;
  171.     }
  172.     public function getDomiciliation(): ?string
  173.     {
  174.         return $this->domiciliation;
  175.     }
  176.     public function setDomiciliation2(?string $domiciliation2): BordereauLCR
  177.     {
  178.         $this->domiciliation2 $domiciliation2;
  179.         return $this;
  180.     }
  181.     public function getDomiciliation2(): ?string
  182.     {
  183.         return $this->domiciliation2;
  184.     }
  185.     public function setCodeEtablissement(?string $codeEtablissement): BordereauLCR
  186.     {
  187.         $this->codeEtablissement $codeEtablissement;
  188.         return $this;
  189.     }
  190.     public function getCodeEtablissement(): ?string
  191.     {
  192.         return $this->codeEtablissement;
  193.     }
  194.     public function setCodeGuichet(?string $codeGuichet): BordereauLCR
  195.     {
  196.         $this->codeGuichet $codeGuichet;
  197.         return $this;
  198.     }
  199.     public function getCodeGuichet(): ?string
  200.     {
  201.         return $this->codeGuichet;
  202.     }
  203.     public function setNumCompte(?string $numCompte): BordereauLCR
  204.     {
  205.         $this->numCompte $numCompte;
  206.         return $this;
  207.     }
  208.     public function getNumCompte(): ?string
  209.     {
  210.         return $this->numCompte;
  211.     }
  212.     public function setCleCompte(?string $cleCompte): BordereauLCR
  213.     {
  214.         $this->cleCompte $cleCompte;
  215.         return $this;
  216.     }
  217.     public function getCleCompte(): ?string
  218.     {
  219.         return $this->cleCompte;
  220.     }
  221.     public function setIBAN(?string $iBAN): BordereauLCR
  222.     {
  223.         $this->iBAN $iBAN;
  224.         return $this;
  225.     }
  226.     public function getIBAN(): ?string
  227.     {
  228.         return $this->iBAN;
  229.     }
  230.     public function setBIC(?string $bIC): BordereauLCR
  231.     {
  232.         $this->bIC $bIC;
  233.         return $this;
  234.     }
  235.     public function getBIC(): ?string
  236.     {
  237.         return $this->bIC;
  238.     }
  239.     public function setUtilisateur(?Utilisateur $utilisateur): BordereauLCR
  240.     {
  241.         $this->utilisateur $utilisateur;
  242.         return $this;
  243.     }
  244.     public function getUtilisateur(): ?Utilisateur
  245.     {
  246.         return $this->utilisateur;
  247.     }
  248.     public function addLCR(LCR $lCR): BordereauLCR
  249.     {
  250.         $this->LCRs[] = $lCR;
  251.         $lCR->setBordereauLCR($this);
  252.         return $this;
  253.     }
  254.     public function removeLCR(LCR $lCR)
  255.     {
  256.         $this->LCRs->removeElement($lCR);
  257.     }
  258.     public function getLCRs(): Collection
  259.     {
  260.         return $this->LCRs;
  261.     }
  262.     public function setTotal(?float $total): BordereauLCR
  263.     {
  264.         $this->total $total;
  265.         return $this;
  266.     }
  267.     public function getTotal(): ?float
  268.     {
  269.         return $this->total;
  270.     }
  271.     public function addComptesBancaire(CompteBancaire $comptesBancaire): BordereauLCR
  272.     {
  273.         $this->comptesBancaires[] = $comptesBancaire;
  274.         return $this;
  275.     }
  276.     public function removeComptesBancaire(CompteBancaire $comptesBancaire)
  277.     {
  278.         $this->comptesBancaires->removeElement($comptesBancaire);
  279.     }
  280.     /**
  281.      * Get comptesBancaires
  282.      *
  283.      * @return Collection
  284.      */
  285.     public function getComptesBancaires()
  286.     {
  287.         return $this->comptesBancaires;
  288.     }
  289.     public function setCompteBancaire(?CompteBancaire $compteBancaire): BordereauLCR
  290.     {
  291.         $this->compteBancaire $compteBancaire;
  292.         return $this;
  293.     }
  294.     public function getCompteBancaire(): ?CompteBancaire
  295.     {
  296.         return $this->compteBancaire;
  297.     }
  298.     public function setReference(?string $reference): BordereauLCR
  299.     {
  300.         $this->reference $reference;
  301.         return $this;
  302.     }
  303.     public function getReference(): ?string
  304.     {
  305.         return $this->reference;
  306.     }
  307.     public function setDateEcheance(DateTime $dateEcheance): BordereauLCR
  308.     {
  309.         $this->dateEcheance $dateEcheance;
  310.         return $this;
  311.     }
  312.     public function getDateEcheance(): DateTime
  313.     {
  314.         return $this->dateEcheance;
  315.     }
  316.     public function setNbLCR(int $nbLCR): BordereauLCR
  317.     {
  318.         $this->nbLCR $nbLCR;
  319.         return $this;
  320.     }
  321.     public function getNbLCR(): int
  322.     {
  323.         return $this->nbLCR;
  324.     }
  325.     public function setTransfertCompta(bool $transfertCompta): BordereauLCR
  326.     {
  327.         $this->transfertCompta $transfertCompta;
  328.         return $this;
  329.     }
  330.     public function getTransfertCompta(): bool
  331.     {
  332.         return $this->transfertCompta;
  333.     }
  334.     public function setModeEncaissement(?ModeEncaissement $modeEncaissement): BordereauLCR
  335.     {
  336.         $this->modeEncaissement $modeEncaissement;
  337.         return $this;
  338.     }
  339.     public function getModeEncaissement(): ?ModeEncaissement
  340.     {
  341.         return $this->modeEncaissement;
  342.     }
  343. }