src/Entity/FO/Societe.php line 22

Open in your IDE?
  1. <?php
  2. namespace App\Entity\FO;
  3. use App\Entity\Articles\FamilleCompta;
  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 Symfony\Component\Validator\Constraints as Assert;
  11. use App\Annotations\SecuredEntity;
  12. /**
  13.  * Societe
  14.  *
  15.  * @ORM\Table("societe__societe")
  16.  * @ORM\Entity(repositoryClass="App\Repository\FO\SocieteRepository")
  17.  * @SecuredEntity(name="Societe", group="REGLAGES")
  18.  */
  19. class Societe
  20. {
  21.     /**
  22.      * @ORM\Column(name="id", type="integer")
  23.      * @ORM\Id
  24.      * @ORM\GeneratedValue(strategy="AUTO")
  25.      */
  26.     private $id;
  27.     /**
  28.      * @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur", inversedBy="societe")
  29.      * @ORM\JoinColumn(nullable=true)
  30.      */
  31.     private $utilisateur;
  32.     /**
  33.      * @ORM\Column(name="signature_mail", type="text", nullable=true)
  34.      */
  35.     private $signatureMail;
  36.     /**
  37.      * @ORM\Column(name="texte_facture", type="text", nullable=true)
  38.      */
  39.     private $texteFacture;
  40.     /**
  41.      * @ORM\Column(name="logo", type="string", length=255, nullable=true)
  42.      */
  43.     private $logo;
  44.     /**
  45.      * @ORM\Column(name="afficher_donnees_import", type="boolean", nullable=true)
  46.      */
  47.     private $afficherDonneesImport;
  48.     /**
  49.      * @ORM\Column(name="date", type="datetime")
  50.      */
  51.     private $date;
  52.     /**
  53.      * @var mailTest
  54.      * @ORM\Column(name="en_inventaire", type="boolean", nullable=true)
  55.      */
  56.     private $enInventaire;
  57.     /**
  58.      * @ORM\Column(name="date_debut_inventaire", type="datetime", nullable=true)
  59.      * @Gedmo\Timestampable(on="update")
  60.      */
  61.     private $dateDebutInventaire;
  62.     /**
  63.      * @ORM\Column(name="date_fin_inventaire", type="datetime", nullable=true)
  64.      * @Gedmo\Timestampable(on="update")
  65.      */
  66.     private $dateFinInventaire;
  67.     /**
  68.      * @ORM\Column(name="date_maj", type="datetime", nullable=true)
  69.      * @Gedmo\Timestampable(on="update")
  70.      */
  71.     private $dateMaj;
  72.     /**
  73.      * @ORM\Column(name="libelle", type="string", length=255, nullable=true)
  74.      * @Assert\NotBlank(message="LibellĂ© obligatoire")
  75.      */
  76.     private $libelle;
  77.     /**
  78.      * @ORM\Column(name="capital", type="string", length=255, nullable=true)
  79.      */
  80.     private $capital;
  81.     /**
  82.      * @ORM\Column(name="rcs", type="string", length=255, nullable=true)
  83.      */
  84.     private $rcs;
  85.     /**
  86.      * @ORM\Column(name="numTva", type="string", length=255, nullable=true)
  87.      * @Assert\NotBlank(message="NumĂ©ro de TVA obligatoire")
  88.      */
  89.     private $numTva;
  90.     /**
  91.      * @ORM\Column(name="adresse", type="string", length=255, nullable=true)
  92.      */
  93.     private $adresse;
  94.     /**
  95.      * @ORM\Column(name="adresse_complementaire", type="string", length=255, nullable=true)
  96.      */
  97.     private $adresseComplementaire;
  98.     /**
  99.      * @ORM\Column(name="code_postal", type="string", length=255, nullable=true)
  100.      */
  101.     private $codePostal;
  102.     /**
  103.      * @ORM\Column(name="ville", type="string", length=255, nullable=true)
  104.      */
  105.     private $ville;
  106.     /**
  107.      * @ORM\Column(name="pays", type="string", length=255, nullable=true)
  108.      */
  109.     private $pays;
  110.     /**
  111.      * @ORM\Column(name="telephone", type="string", length=255, nullable=true)
  112.      */
  113.     private $telephone;
  114.     /**
  115.      * @ORM\Column(name="fax", type="string", length=255, nullable=true)
  116.      */
  117.     private $fax;
  118.     /**
  119.      * @ORM\Column(name="siteWeb", type="string", length=255, nullable=true)
  120.      */
  121.     private $siteWeb;
  122.     /**
  123.      * @ORM\Column(name="siret", type="string", length=255, nullable=true)
  124.      * @Assert\NotBlank(message="Siret obligatoire")
  125.      */
  126.     private $siret;
  127.     /**
  128.      * @ORM\Column(name="ape", type="string", length=255, nullable=true)
  129.      */
  130.     private $ape;
  131.     /**
  132.      * @var string
  133.      * @Assert\Email(
  134.      *     message = "Adresse email non valide"
  135.      * )
  136.      * @ORM\Column(name="email", type="string", length=255, nullable=true)
  137.      */
  138.     private $email;
  139.     /**
  140.      * @var string
  141.      * @Assert\Email(
  142.      *     message = "Adresse email non valide"
  143.      * )
  144.      * @ORM\Column(name="emailTest", type="string", length=255, nullable=true)
  145.      */
  146.     private $emailTest;
  147.     /**
  148.      * @var mailTest
  149.      * @ORM\Column(name="mailTest", type="boolean", nullable=true)
  150.      */
  151.     private $mailTest;
  152.     /**
  153.      *
  154.      * @ORM\Column(name="dateDebutExercice", type="datetime", nullable=true)
  155.      */
  156.     private $dateDebutExercice;
  157.     /**
  158.      * @ORM\Column(name="dateFinExercice", type="datetime", nullable=true)
  159.      */
  160.     private $dateFinExercice;
  161.     /**
  162.      * @ORM\Column(name="note_service", type="text", nullable=true)
  163.      *
  164.      */
  165.     private $noteService;
  166.     /**
  167.      * @ORM\OneToMany(targetEntity="App\Entity\FO\CompteBancaire", cascade={"persist"},mappedBy="societe")
  168.      */
  169.     private $comptesBancaires;
  170.     /**
  171.      * @ORM\ManyToOne(targetEntity="App\Entity\Articles\FamilleCompta", cascade={"persist"})
  172.      */
  173.     private $familleComptaFraisFixe;
  174.     /**
  175.      * @ORM\ManyToOne(targetEntity="App\Entity\Articles\FamilleCompta", cascade={"persist"})
  176.      */
  177.     private $familleComptaFraisPort;
  178.     /**
  179.      * @ORM\ManyToOne(targetEntity="App\Entity\Articles\FamilleCompta", cascade={"persist"})
  180.      */
  181.     private $familleComptaFraisAnnexes;
  182.     /**
  183.      * @var string
  184.      *
  185.      * @ORM\Column(name="mailer_user", type="string", length=255, nullable=true)
  186.      */
  187.     private $mailerUser;
  188.     /**
  189.      * @var string
  190.      *
  191.      * @ORM\Column(name="mailer_password", type="string", length=255, nullable=true)
  192.      */
  193.     private $mailerPassword;
  194.     /**
  195.      * @var string
  196.      *
  197.      * @ORM\Column(name="mailer_host", type="string", length=255, nullable=true)
  198.      */
  199.     private $mailerHost;
  200.     /**
  201.      * @var string
  202.      *
  203.      * @ORM\Column(name="mailer_port", type="string", length=255, nullable=true)
  204.      */
  205.     private $mailerPort;
  206.     /**
  207.      * @ORM\Column(type="string", length=255, nullable=true)
  208.      */
  209.     private $bandeauEmail;
  210.     /**
  211.      * @ORM\Column(type="datetime", nullable=true)
  212.      */
  213.     private $dateDebutTexteBandeau;
  214.     /**
  215.      * @ORM\Column(type="datetime", nullable=true)
  216.      */
  217.     private $dateFinTexteBandeau;
  218.     /**
  219.      * @ORM\Column(type="boolean", nullable=true)
  220.      */
  221.     private $statutTexteBandeau;
  222.     public function __construct()
  223.     {
  224.         $this->date                 = new Datetime();
  225.         $this->afficherDonneesImport 0;
  226.         $this->comptesBancaires     = new ArrayCollection();
  227.     }
  228.     public function getId(): int
  229.     {
  230.         return $this->id;
  231.     }
  232.     public function setDate(DateTime $date): Societe
  233.     {
  234.         $this->date $date;
  235.         return $this;
  236.     }
  237.     public function getDate(): DateTime
  238.     {
  239.         return $this->date;
  240.     }
  241.     public function setLibelle(?string $libelle): Societe
  242.     {
  243.         $this->libelle $libelle;
  244.         return $this;
  245.     }
  246.     public function getLibelle(): ?string
  247.     {
  248.         return $this->libelle;
  249.     }
  250.     public function setNumTva(?string $numTva): Societe
  251.     {
  252.         $this->numTva $numTva;
  253.         return $this;
  254.     }
  255.     public function getNumTva(): ?string
  256.     {
  257.         return $this->numTva;
  258.     }
  259.     public function setAdresse(?string $adresse): Societe
  260.     {
  261.         $this->adresse $adresse;
  262.         return $this;
  263.     }
  264.     public function getAdresse(): ?string
  265.     {
  266.         return $this->adresse;
  267.     }
  268.     public function setTelephone(?string $telephone): Societe
  269.     {
  270.         $this->telephone $telephone;
  271.         return $this;
  272.     }
  273.     public function getTelephone(): ?string
  274.     {
  275.         return $this->telephone;
  276.     }
  277.     public function setFax(?string $fax): Societe
  278.     {
  279.         $this->fax $fax;
  280.         return $this;
  281.     }
  282.     public function getFax(): ?string
  283.     {
  284.         return $this->fax;
  285.     }
  286.     public function setSiteWeb(?string $siteWeb): Societe
  287.     {
  288.         $this->siteWeb $siteWeb;
  289.         return $this;
  290.     }
  291.     public function getSiteWeb(): ?string
  292.     {
  293.         return $this->siteWeb;
  294.     }
  295.     public function setSiret(?string $siret): Societe
  296.     {
  297.         $this->siret $siret;
  298.         return $this;
  299.     }
  300.     public function getSiret(): ?string
  301.     {
  302.         return $this->siret;
  303.     }
  304.     public function setDateMaj(?DateTime $dateMaj): Societe
  305.     {
  306.         $this->dateMaj $dateMaj;
  307.         return $this;
  308.     }
  309.     public function getDateMaj(): ?DateTime
  310.     {
  311.         return $this->dateMaj;
  312.     }
  313.     public function setEmail(?string $email): Societe
  314.     {
  315.         $this->email $email;
  316.         return $this;
  317.     }
  318.     public function getEmail(): ?string
  319.     {
  320.         return $this->email;
  321.     }
  322.     public function setEmailTest(string $emailTest): Societe
  323.     {
  324.         $this->emailTest $emailTest;
  325.         return $this;
  326.     }
  327.     public function getEmailTest(): ?string
  328.     {
  329.         return $this->emailTest;
  330.     }
  331.     public function setLogo(?string $logo): Societe
  332.     {
  333.         $this->logo $logo;
  334.         return $this;
  335.     }
  336.     public function getLogo(): ?string
  337.     {
  338.         return $this->logo;
  339.     }
  340.     public function getLogoDir(): string
  341.     {
  342.         return 'uploads/logos/societe';
  343.     }
  344.     public function setUtilisateur(?Utilisateur $utilisateur): Societe
  345.     {
  346.         $this->utilisateur $utilisateur;
  347.         return $this;
  348.     }
  349.     public function getUtilisateur(): ?Utilisateur
  350.     {
  351.         return $this->utilisateur;
  352.     }
  353.     public function setCapital(?string $capital): Societe
  354.     {
  355.         $this->capital $capital;
  356.         return $this;
  357.     }
  358.     public function getCapital(): ?string
  359.     {
  360.         return $this->capital;
  361.     }
  362.     public function setRcs(?string $rcs): Societe
  363.     {
  364.         $this->rcs $rcs;
  365.         return $this;
  366.     }
  367.     public function getRcs(): ?string
  368.     {
  369.         return $this->rcs;
  370.     }
  371.     public function setAdresseComplementaire(?string $adresseComplementaire): Societe
  372.     {
  373.         $this->adresseComplementaire $adresseComplementaire;
  374.         return $this;
  375.     }
  376.     public function getAdresseComplementaire(): ?string
  377.     {
  378.         return $this->adresseComplementaire;
  379.     }
  380.     public function setCodePostal(?string $codePostal): Societe
  381.     {
  382.         $this->codePostal $codePostal;
  383.         return $this;
  384.     }
  385.     public function getCodePostal(): ?string
  386.     {
  387.         return $this->codePostal;
  388.     }
  389.     public function setVille(?string $ville): Societe
  390.     {
  391.         $this->ville $ville;
  392.         return $this;
  393.     }
  394.     public function getVille(): ?string
  395.     {
  396.         return $this->ville;
  397.     }
  398.     public function setPays(?string $pays): Societe
  399.     {
  400.         $this->pays $pays;
  401.         return $this;
  402.     }
  403.     public function getPays(): ?string
  404.     {
  405.         return $this->pays;
  406.     }
  407.     public function setNoteService(?string $noteService): Societe
  408.     {
  409.         $this->noteService $noteService;
  410.         return $this;
  411.     }
  412.     public function getNoteService(): ?string
  413.     {
  414.         return $this->noteService;
  415.     }
  416.     public function setAfficherDonneesImport(?bool $afficherDonneesImport): Societe
  417.     {
  418.         $this->afficherDonneesImport $afficherDonneesImport;
  419.         return $this;
  420.     }
  421.     public function getAfficherDonneesImport(): ?bool
  422.     {
  423.         return $this->afficherDonneesImport;
  424.     }
  425.     public function addComptesBancaire(CompteBancaire $comptesBancaire): Societe
  426.     {
  427.         $this->comptesBancaires[] = $comptesBancaire;
  428.         return $this;
  429.     }
  430.     public function removeComptesBancaire(CompteBancaire $comptesBancaire)
  431.     {
  432.         $this->comptesBancaires->removeElement($comptesBancaire);
  433.     }
  434.     public function getComptesBancaires(): Collection
  435.     {
  436.         return $this->comptesBancaires;
  437.     }
  438.     public function setMailTest(?bool $mailTest): Societe
  439.     {
  440.         $this->mailTest $mailTest;
  441.         return $this;
  442.     }
  443.     public function getMailTest(): ?bool
  444.     {
  445.         return $this->mailTest;
  446.     }
  447.     public function setEnInventaire(?bool $enInventaire): Societe
  448.     {
  449.         $this->enInventaire $enInventaire;
  450.         return $this;
  451.     }
  452.     public function getEnInventaire(): ?bool
  453.     {
  454.         return $this->enInventaire;
  455.     }
  456.     public function setDateDebutInventaire(?DateTime $dateDebutInventaire): Societe
  457.     {
  458.         $this->dateDebutInventaire $dateDebutInventaire;
  459.         return $this;
  460.     }
  461.     public function getDateDebutInventaire(): ?DateTime
  462.     {
  463.         return $this->dateDebutInventaire;
  464.     }
  465.     public function setDateFinInventaire(?DateTime $dateFinInventaire): Societe
  466.     {
  467.         $this->dateFinInventaire $dateFinInventaire;
  468.         return $this;
  469.     }
  470.     public function getDateFinInventaire(): ?DateTime
  471.     {
  472.         return $this->dateFinInventaire;
  473.     }
  474.     public function setFamilleComptaFraisFixe(?FamilleCompta $familleComptaFraisFixe): Societe
  475.     {
  476.         $this->familleComptaFraisFixe $familleComptaFraisFixe;
  477.         return $this;
  478.     }
  479.     public function getFamilleComptaFraisFixe(): ?FamilleCompta
  480.     {
  481.         return $this->familleComptaFraisFixe;
  482.     }
  483.     public function setFamilleComptaFraisPort(?FamilleCompta $familleComptaFraisPort): Societe
  484.     {
  485.         $this->familleComptaFraisPort $familleComptaFraisPort;
  486.         return $this;
  487.     }
  488.     public function getFamilleComptaFraisPort(): ?FamilleCompta
  489.     {
  490.         return $this->familleComptaFraisPort;
  491.     }
  492.     public function setSignatureMail(?string $signatureMail): Societe
  493.     {
  494.         $this->signatureMail $signatureMail;
  495.         return $this;
  496.     }
  497.     public function getSignatureMail(): ?string
  498.     {
  499.         return $this->signatureMail;
  500.     }
  501.     public function getTexteFacture(): ?string
  502.     {
  503.         return $this->texteFacture;
  504.     }
  505.     public function setTexteFacture(?string $texteFacture): Societe
  506.     {
  507.         $this->texteFacture $texteFacture;
  508.         return $this;
  509.     }
  510.     public function setDateDebutExercice(?DateTime $dateDebutExercice): Societe
  511.     {
  512.         $this->dateDebutExercice $dateDebutExercice;
  513.         return $this;
  514.     }
  515.     public function getDateDebutExercice(): ?DateTime
  516.     {
  517.         return $this->dateDebutExercice;
  518.     }
  519.     public function setDateFinExercice(?DateTime $dateFinExercice): Societe
  520.     {
  521.         $this->dateFinExercice $dateFinExercice;
  522.         return $this;
  523.     }
  524.     public function getDateFinExercice(): ?DateTime
  525.     {
  526.         return $this->dateFinExercice;
  527.     }
  528.     public function setFamilleComptaFraisAnnexes(?FamilleCompta $familleComptaFraisAnnexes): Societe
  529.     {
  530.         $this->familleComptaFraisAnnexes $familleComptaFraisAnnexes;
  531.         return $this;
  532.     }
  533.     public function getFamilleComptaFraisAnnexes(): ?FamilleCompta
  534.     {
  535.         return $this->familleComptaFraisAnnexes;
  536.     }
  537.     public function setApe(?string $ape): Societe
  538.     {
  539.         $this->ape $ape;
  540.         return $this;
  541.     }
  542.     public function getApe(): ?string
  543.     {
  544.         return $this->ape;
  545.     }
  546.     public function setMailerUser(?string $mailerUser): Societe
  547.     {
  548.         $this->mailerUser $mailerUser;
  549.         return $this;
  550.     }
  551.     public function getMailerUser(): ?string
  552.     {
  553.         return $this->mailerUser;
  554.     }
  555.     public function setMailerPassword(?string $mailerPassword): Societe
  556.     {
  557.         $this->mailerPassword $mailerPassword;
  558.         return $this;
  559.     }
  560.     public function getMailerPassword(): ?string
  561.     {
  562.         return $this->mailerPassword;
  563.     }
  564.     public function setMailerHost(?string $mailerHost): Societe
  565.     {
  566.         $this->mailerHost $mailerHost;
  567.         return $this;
  568.     }
  569.     public function getMailerHost(): ?string
  570.     {
  571.         return $this->mailerHost;
  572.     }
  573.     public function setMailerPort(?string $mailerPort): Societe
  574.     {
  575.         $this->mailerPort $mailerPort;
  576.         return $this;
  577.     }
  578.     public function getMailerPort(): ?string
  579.     {
  580.         return $this->mailerPort;
  581.     }
  582.     public function getBandeauEmail(): ?string
  583.     {
  584.         return $this->bandeauEmail;
  585.     }
  586.     public function setBandeauEmail(?string $bandeauEmail): self
  587.     {
  588.         $this->bandeauEmail $bandeauEmail;
  589.         return $this;
  590.     }
  591.     public function getDateDebutTexteBandeau(): ?\DateTimeInterface
  592.     {
  593.         return $this->dateDebutTexteBandeau;
  594.     }
  595.     public function setDateDebutTexteBandeau(?\DateTimeInterface $dateDebutTexteBandeau): self
  596.     {
  597.         $this->dateDebutTexteBandeau $dateDebutTexteBandeau;
  598.         return $this;
  599.     }
  600.     public function getDateFinTexteBandeau(): ?\DateTimeInterface
  601.     {
  602.         return $this->dateFinTexteBandeau;
  603.     }
  604.     public function setDateFinTexteBandeau(?\DateTimeInterface $dateFinTexteBandeau): self
  605.     {
  606.         $this->dateFinTexteBandeau $dateFinTexteBandeau;
  607.         return $this;
  608.     }
  609.     public function isStatutTexteBandeau(): ?bool
  610.     {
  611.         return $this->statutTexteBandeau;
  612.     }
  613.     public function setStatutTexteBandeau(?bool $statutTexteBandeau): self
  614.     {
  615.         $this->statutTexteBandeau $statutTexteBandeau;
  616.         return $this;
  617.     }
  618. }