src/Entity/FO/CompteBancaire.php line 27

Open in your IDE?
  1. <?php
  2. namespace App\Entity\FO;
  3. use App\Entity\GestionComerciale\Acompte;
  4. use App\Entity\GestionComerciale\Bordereau;
  5. use App\Entity\GestionComerciale\BordereauLCR;
  6. use App\Entity\GestionComerciale\LCR;
  7. use App\Entity\GestionComerciale\MouvementCaisse;
  8. use App\Entity\Utilisateur\Utilisateur;
  9. use DateTime;
  10. use Doctrine\Common\Collections\ArrayCollection;
  11. use Doctrine\Common\Collections\Collection;
  12. use Doctrine\ORM\Mapping as ORM;
  13. use Gedmo\Mapping\Annotation as Gedmo;
  14. use Symfony\Component\Validator\Constraints as Assert;
  15. use App\Annotations\SecuredEntity;
  16. /**
  17.  * CompteBancaire
  18.  *
  19.  * @ORM\Table("fo__compte_bancaire")
  20.  * @ORM\Entity(repositoryClass="App\Repository\FO\CompteBancaireRepository")
  21.  * @Gedmo\SoftDeleteable(fieldName="dateSuppression",timeAware=false)
  22.  * @SecuredEntity(name="Compte Bancaire", group="REGLAGES")
  23.  */
  24. class CompteBancaire
  25. {
  26.     /**
  27.      * @ORM\Column(name="id", type="integer")
  28.      * @ORM\Id
  29.      * @ORM\GeneratedValue(strategy="AUTO")
  30.      */
  31.     private $id;
  32.     
  33.     /**
  34.      * @ORM\Column(name="date", type="datetime")
  35.      */
  36.     private $date;
  37.     
  38.      /**
  39.      * @ORM\Column(name="date_maj", type="datetime", nullable=true)
  40.      * @Gedmo\Timestampable(on="update")
  41.      */
  42.     private $dateMaj;
  43.     /**
  44.      * @ORM\Column(name="libelle", type="string", length=255, nullable=true)
  45.      * @Assert\NotBlank(message="LibellĂ© obligatoire")      
  46.      */
  47.     private $libelle;
  48.     
  49.     /**
  50.      * @ORM\Column(name="date_suppression", type="datetime", nullable=true)
  51.      */
  52.     private $dateSuppression;
  53.     
  54.     /**
  55.      * @ORM\Column(name="domiciliation", type="string", length=255, nullable=true)
  56.      */
  57.     private $domiciliation;
  58.     
  59.     /**
  60.      * @ORM\Column(name="domiciliation2", type="string", length=255, nullable=true)
  61.      */
  62.     private $domiciliation2;
  63.     /**
  64.      * @ORM\Column(name="codeEtablissement", type="string", length=255, nullable=true)
  65.      */
  66.     private $codeEtablissement;
  67.     /**
  68.      * @ORM\Column(name="codeGuichet", type="string", length=255, nullable=true)
  69.      */
  70.     private $codeGuichet;
  71.     /**
  72.      * @ORM\Column(name="numCompte", type="string", length=255, nullable=true)
  73.      */
  74.     private $numCompte;
  75.     /**
  76.      * @ORM\Column(name="cleCompte", type="string", length=255, nullable=true)
  77.      */
  78.     private $cleCompte;
  79.     /**
  80.      * @ORM\Column(name="IBAN", type="string", length=255, nullable=true)
  81.      */
  82.     private $iBAN;
  83.     /**
  84.      * @ORM\Column(name="BIC", type="string", length=255, nullable=true)
  85.      */
  86.     private $bIC;
  87.     
  88.     /**
  89.      * @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur", inversedBy="comptesBancaires")
  90.      * @ORM\JoinColumn(nullable=true)
  91.      */
  92.     private $utilisateur;
  93.     
  94.     /**
  95.      * @ORM\ManyToOne(targetEntity="App\Entity\FO\Societe", inversedBy="comptesBancaires")
  96.      * @ORM\JoinColumn(nullable=true)
  97.      */
  98.     private $societe;
  99.     
  100.      /**
  101.     * @ORM\OneToMany(targetEntity="App\Entity\GestionComerciale\BordereauLCR", cascade={"persist"},mappedBy="compteBancaire")
  102.     */
  103.     private $bordereauxLCR;
  104.     
  105.     /**
  106.     * @ORM\OneToMany(targetEntity="App\Entity\GestionComerciale\Bordereau", cascade={"persist"},mappedBy="compteBancaire")
  107.     */
  108.     private $bordereaux;
  109.     
  110.     /**
  111.     * @ORM\OneToMany(targetEntity="App\Entity\GestionComerciale\LCR", cascade={"persist"},mappedBy="compteBancaireSociete")
  112.     */
  113.     private $lcrs;
  114.     
  115.     /**
  116.     * @ORM\OneToMany(targetEntity="App\Entity\GestionComerciale\Acompte", cascade={"persist"},mappedBy="compteBancaireSociete")
  117.     */
  118.     private $reglements;
  119.     
  120.     /**
  121.      * @ORM\Column(name="compta_perte", type="string", length=255, nullable=true)
  122.      */
  123.     private $comptaPerte;
  124.     
  125.     /**
  126.      * @ORM\Column(name="compta_profit", type="string", length=255, nullable=true)
  127.      */
  128.     private $comptaProfit;
  129.     
  130.     /**
  131.      * @ORM\Column(name="compta_compta", type="string", length=255, nullable=true)
  132.      */
  133.     private $comptaCompta;
  134.     
  135.     /**
  136.      * @ORM\Column(name="compta_fond", type="string", length=255, nullable=true)
  137.      */
  138.     private $comptaFond;
  139.     
  140.     /**
  141.      * @ORM\Column(name="id_import", type="string", length=255, nullable=true)
  142.      */
  143.     private $idImport;
  144.     
  145.     /**
  146.     * @ORM\OneToMany(targetEntity="App\Entity\GestionComerciale\MouvementCaisse", cascade={"persist"},mappedBy="compteBancaire")
  147.     */
  148.     private $mouvementsCaisse;
  149.     
  150.     /**
  151.      * @ORM\Column(name="visible", type="boolean", nullable=true)
  152.      */
  153.     private $visible;
  154.     /**
  155.      * @ORM\Column(name="code_journal", type="string", length=255, nullable=true)
  156.      */
  157.     private $codeJournal;
  158.     /**
  159.      * Constructor
  160.      */
  161.     public function __construct()
  162.     {
  163.         $this->date             = new Datetime();
  164.         $this->visible          1;
  165.         $this->mouvementsCaisse = new ArrayCollection();
  166.         $this->bordereaux       = new ArrayCollection();
  167.         $this->reglements       = new ArrayCollection();
  168.         $this->lcrs             = new ArrayCollection();
  169.         $this->bordereauxLCR    = new ArrayCollection();
  170.     }
  171.     
  172.     /**
  173.  * toString
  174.  * @return string
  175.  */
  176. public function __toString()
  177. {
  178.     return $this->getLibelle();
  179. }
  180.     public function getId(): int
  181.     {
  182.         return $this->id;
  183.     }
  184.     public function setDate(DateTime $date): CompteBancaire
  185.     {
  186.         $this->date $date;
  187.         return $this;
  188.     }
  189.     public function getDate(): DateTime
  190.     {
  191.         return $this->date;
  192.     }
  193.     public function setDateMaj(?DateTime $dateMaj): CompteBancaire
  194.     {
  195.         $this->dateMaj $dateMaj;
  196.         return $this;
  197.     }
  198.     public function getDateMaj(): ?DateTime
  199.     {
  200.         return $this->dateMaj;
  201.     }
  202.     public function setDateSuppression(?DateTime $dateSuppression): CompteBancaire
  203.     {
  204.         $this->dateSuppression $dateSuppression;
  205.         return $this;
  206.     }
  207.     public function getDateSuppression(): ?DateTime
  208.     {
  209.         return $this->dateSuppression;
  210.     }
  211.     public function setDomiciliation(?string $domiciliation): CompteBancaire
  212.     {
  213.         $this->domiciliation $domiciliation;
  214.         return $this;
  215.     }
  216.     public function getDomiciliation(): ?string
  217.     {
  218.         return $this->domiciliation;
  219.     }
  220.     public function setDomiciliation2(?string $domiciliation2): CompteBancaire
  221.     {
  222.         $this->domiciliation2 $domiciliation2;
  223.         return $this;
  224.     }
  225.     public function getDomiciliation2(): ?string
  226.     {
  227.         return $this->domiciliation2;
  228.     }
  229.     public function setCodeEtablissement(?string $codeEtablissement): CompteBancaire
  230.     {
  231.         $this->codeEtablissement $codeEtablissement;
  232.         return $this;
  233.     }
  234.     public function getCodeEtablissement(): ?string
  235.     {
  236.         return $this->codeEtablissement;
  237.     }
  238.     public function setCodeGuichet(?string $codeGuichet): CompteBancaire
  239.     {
  240.         $this->codeGuichet $codeGuichet;
  241.         return $this;
  242.     }
  243.     public function getCodeGuichet(): ?string
  244.     {
  245.         return $this->codeGuichet;
  246.     }
  247.     public function setNumCompte(?string $numCompte): CompteBancaire
  248.     {
  249.         $this->numCompte $numCompte;
  250.         return $this;
  251.     }
  252.     public function getNumCompte(): ?string
  253.     {
  254.         return $this->numCompte;
  255.     }
  256.     public function setCleCompte(?string $cleCompte): CompteBancaire
  257.     {
  258.         $this->cleCompte $cleCompte;
  259.         return $this;
  260.     }
  261.     public function getCleCompte(): ?string
  262.     {
  263.         return $this->cleCompte;
  264.     }
  265.     public function setIBAN(?string $iBAN): CompteBancaire
  266.     {
  267.         $this->iBAN $iBAN;
  268.         return $this;
  269.     }
  270.     public function getIBAN(): ?string
  271.     {
  272.         return $this->iBAN;
  273.     }
  274.     public function setBIC(?string $bIC): CompteBancaire
  275.     {
  276.         $this->bIC $bIC;
  277.         return $this;
  278.     }
  279.     public function getBIC(): ?string
  280.     {
  281.         return $this->bIC;
  282.     }
  283.     public function setUtilisateur(?Utilisateur $utilisateur): CompteBancaire
  284.     {
  285.         $this->utilisateur $utilisateur;
  286.         return $this;
  287.     }
  288.     public function getUtilisateur(): ?Utilisateur
  289.     {
  290.         return $this->utilisateur;
  291.     }
  292.     public function setSociete(?Societe $societe): CompteBancaire
  293.     {
  294.         $this->societe $societe;
  295.         return $this;
  296.     }
  297.     public function getSociete(): ?Societe
  298.     {
  299.         return $this->societe;
  300.     }
  301.     public function setLibelle(?string $libelle): CompteBancaire
  302.     {
  303.         $this->libelle $libelle;
  304.         return $this;
  305.     }
  306.     public function getLibelle(): ?string
  307.     {
  308.         return $this->libelle;
  309.     }
  310.     public function setBordereauLCR(?BordereauLCR $bordereauLCR): CompteBancaire
  311.     {
  312.         $this->bordereauLCR $bordereauLCR;
  313.         return $this;
  314.     }
  315.     public function getBordereauLCR(): ?BordereauLCR
  316.     {
  317.         return $this->bordereauLCR;
  318.     }
  319.     public function addBordereauxLCR(BordereauLCR $bordereauxLCR): CompteBancaire
  320.     {
  321.         $this->bordereauxLCR[] = $bordereauxLCR;
  322.         return $this;
  323.     }
  324.     public function removeBordereauxLCR(BordereauLCR $bordereauxLCR)
  325.     {
  326.         $this->bordereauxLCR->removeElement($bordereauxLCR);
  327.     }
  328.     public function getBordereauxLCR(): Collection
  329.     {
  330.         return $this->bordereauxLCR;
  331.     }
  332.     public function addLcr(LCR $lcr): CompteBancaire
  333.     {
  334.         $this->lcrs[] = $lcr;
  335.         return $this;
  336.     }
  337.     public function removeLcr(LCR $lcr)
  338.     {
  339.         $this->lcrs->removeElement($lcr);
  340.     }
  341.     public function getLcrs(): Collection
  342.     {
  343.         return $this->lcrs;
  344.     }
  345.     public function addReglement(Acompte $reglement): CompteBancaire
  346.     {
  347.         $this->reglements[] = $reglement;
  348.         return $this;
  349.     }
  350.     public function removeReglement(Acompte $reglement)
  351.     {
  352.         $this->reglements->removeElement($reglement);
  353.     }
  354.     public function getReglements(): Collection
  355.     {
  356.         return $this->reglements;
  357.     }
  358.     public function setComptaPerte(?string $comptaPerte): CompteBancaire
  359.     {
  360.         $this->comptaPerte $comptaPerte;
  361.         return $this;
  362.     }
  363.     public function getComptaPerte(): ?string
  364.     {
  365.         return $this->comptaPerte;
  366.     }
  367.     public function setComptaProfit(?string $comptaProfit): CompteBancaire
  368.     {
  369.         $this->comptaProfit $comptaProfit;
  370.         return $this;
  371.     }
  372.     public function getComptaProfit(): ?string
  373.     {
  374.         return $this->comptaProfit;
  375.     }
  376.     public function setComptaCompta(?string $comptaCompta): CompteBancaire
  377.     {
  378.         $this->comptaCompta $comptaCompta;
  379.         return $this;
  380.     }
  381.     public function getComptaCompta(): ?string
  382.     {
  383.         return $this->comptaCompta;
  384.     }
  385.     public function setComptaFond(?string $comptaFond): CompteBancaire
  386.     {
  387.         $this->comptaFond $comptaFond;
  388.         return $this;
  389.     }
  390.     public function getComptaFond(): ?string
  391.     {
  392.         return $this->comptaFond;
  393.     }
  394.     public function addBordereaux(Bordereau $bordereaux): CompteBancaire
  395.     {
  396.         $this->bordereaux[] = $bordereaux;
  397.         return $this;
  398.     }
  399.     public function removeBordereaux(Bordereau $bordereaux)
  400.     {
  401.         $this->bordereaux->removeElement($bordereaux);
  402.     }
  403.     public function getBordereaux(): Collection
  404.     {
  405.         return $this->bordereaux;
  406.     }
  407.     public function setIdImport(?string $idImport): CompteBancaire
  408.     {
  409.         $this->idImport $idImport;
  410.         return $this;
  411.     }
  412.     public function getIdImport(): ?string
  413.     {
  414.         return $this->idImport;
  415.     }
  416.     public function setVisible(?bool $visible): CompteBancaire
  417.     {
  418.         $this->visible $visible;
  419.         return $this;
  420.     }
  421.     public function getVisible(): ?bool
  422.     {
  423.         return $this->visible;
  424.     }
  425.     public function addMouvementsCaisse(MouvementCaisse $mouvementsCaisse): CompteBancaire
  426.     {
  427.         $this->mouvementsCaisse[] = $mouvementsCaisse;
  428.         return $this;
  429.     }
  430.     public function removeMouvementsCaisse(MouvementCaisse $mouvementsCaisse)
  431.     {
  432.         $this->mouvementsCaisse->removeElement($mouvementsCaisse);
  433.     }
  434.     public function getMouvementsCaisse(): Collection
  435.     {
  436.         return $this->mouvementsCaisse;
  437.     }
  438.     public function setCodeJournal(?string $codeJournal): CompteBancaire
  439.     {
  440.         $this->codeJournal $codeJournal;
  441.         return $this;
  442.     }
  443.     public function getCodeJournal(): ?string
  444.     {
  445.         return $this->codeJournal;
  446.     }
  447. }