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.     public function __construct()
  207.     {
  208.         $this->date                 = new Datetime();
  209.         $this->afficherDonneesImport 0;
  210.         $this->comptesBancaires     = new ArrayCollection();
  211.     }
  212.     public function getId(): int
  213.     {
  214.         return $this->id;
  215.     }
  216.     public function setDate(DateTime $date): Societe
  217.     {
  218.         $this->date $date;
  219.         return $this;
  220.     }
  221.     public function getDate(): DateTime
  222.     {
  223.         return $this->date;
  224.     }
  225.     public function setLibelle(?string $libelle): Societe
  226.     {
  227.         $this->libelle $libelle;
  228.         return $this;
  229.     }
  230.     public function getLibelle(): ?string
  231.     {
  232.         return $this->libelle;
  233.     }
  234.     public function setNumTva(?string $numTva): Societe
  235.     {
  236.         $this->numTva $numTva;
  237.         return $this;
  238.     }
  239.     public function getNumTva(): ?string
  240.     {
  241.         return $this->numTva;
  242.     }
  243.     public function setAdresse(?string $adresse): Societe
  244.     {
  245.         $this->adresse $adresse;
  246.         return $this;
  247.     }
  248.     public function getAdresse(): ?string
  249.     {
  250.         return $this->adresse;
  251.     }
  252.     public function setTelephone(?string $telephone): Societe
  253.     {
  254.         $this->telephone $telephone;
  255.         return $this;
  256.     }
  257.     public function getTelephone(): ?string
  258.     {
  259.         return $this->telephone;
  260.     }
  261.     public function setFax(?string $fax): Societe
  262.     {
  263.         $this->fax $fax;
  264.         return $this;
  265.     }
  266.     public function getFax(): ?string
  267.     {
  268.         return $this->fax;
  269.     }
  270.     public function setSiteWeb(?string $siteWeb): Societe
  271.     {
  272.         $this->siteWeb $siteWeb;
  273.         return $this;
  274.     }
  275.     public function getSiteWeb(): ?string
  276.     {
  277.         return $this->siteWeb;
  278.     }
  279.     public function setSiret(?string $siret): Societe
  280.     {
  281.         $this->siret $siret;
  282.         return $this;
  283.     }
  284.     public function getSiret(): ?string
  285.     {
  286.         return $this->siret;
  287.     }
  288.     public function setDateMaj(?DateTime $dateMaj): Societe
  289.     {
  290.         $this->dateMaj $dateMaj;
  291.         return $this;
  292.     }
  293.     public function getDateMaj(): ?DateTime
  294.     {
  295.         return $this->dateMaj;
  296.     }
  297.     public function setEmail(?string $email): Societe
  298.     {
  299.         $this->email $email;
  300.         return $this;
  301.     }
  302.     public function getEmail(): ?string
  303.     {
  304.         return $this->email;
  305.     }
  306.     public function setEmailTest(string $emailTest): Societe
  307.     {
  308.         $this->emailTest $emailTest;
  309.         return $this;
  310.     }
  311.     public function getEmailTest(): ?string
  312.     {
  313.         return $this->emailTest;
  314.     }
  315.     public function setLogo(?string $logo): Societe
  316.     {
  317.         $this->logo $logo;
  318.         return $this;
  319.     }
  320.     public function getLogo(): ?string
  321.     {
  322.         return $this->logo;
  323.     }
  324.     public function getLogoDir(): string
  325.     {
  326.         return 'uploads/logos/societe';
  327.     }
  328.     public function setUtilisateur(?Utilisateur $utilisateur): Societe
  329.     {
  330.         $this->utilisateur $utilisateur;
  331.         return $this;
  332.     }
  333.     public function getUtilisateur(): ?Utilisateur
  334.     {
  335.         return $this->utilisateur;
  336.     }
  337.     public function setCapital(?string $capital): Societe
  338.     {
  339.         $this->capital $capital;
  340.         return $this;
  341.     }
  342.     public function getCapital(): ?string
  343.     {
  344.         return $this->capital;
  345.     }
  346.     public function setRcs(?string $rcs): Societe
  347.     {
  348.         $this->rcs $rcs;
  349.         return $this;
  350.     }
  351.     public function getRcs(): ?string
  352.     {
  353.         return $this->rcs;
  354.     }
  355.     public function setAdresseComplementaire(?string $adresseComplementaire): Societe
  356.     {
  357.         $this->adresseComplementaire $adresseComplementaire;
  358.         return $this;
  359.     }
  360.     public function getAdresseComplementaire(): ?string
  361.     {
  362.         return $this->adresseComplementaire;
  363.     }
  364.     public function setCodePostal(?string $codePostal): Societe
  365.     {
  366.         $this->codePostal $codePostal;
  367.         return $this;
  368.     }
  369.     public function getCodePostal(): ?string
  370.     {
  371.         return $this->codePostal;
  372.     }
  373.     public function setVille(?string $ville): Societe
  374.     {
  375.         $this->ville $ville;
  376.         return $this;
  377.     }
  378.     public function getVille(): ?string
  379.     {
  380.         return $this->ville;
  381.     }
  382.     public function setPays(?string $pays): Societe
  383.     {
  384.         $this->pays $pays;
  385.         return $this;
  386.     }
  387.     public function getPays(): ?string
  388.     {
  389.         return $this->pays;
  390.     }
  391.     public function setNoteService(?string $noteService): Societe
  392.     {
  393.         $this->noteService $noteService;
  394.         return $this;
  395.     }
  396.     public function getNoteService(): ?string
  397.     {
  398.         return $this->noteService;
  399.     }
  400.     public function setAfficherDonneesImport(?bool $afficherDonneesImport): Societe
  401.     {
  402.         $this->afficherDonneesImport $afficherDonneesImport;
  403.         return $this;
  404.     }
  405.     public function getAfficherDonneesImport(): ?bool
  406.     {
  407.         return $this->afficherDonneesImport;
  408.     }
  409.     public function addComptesBancaire(CompteBancaire $comptesBancaire): Societe
  410.     {
  411.         $this->comptesBancaires[] = $comptesBancaire;
  412.         return $this;
  413.     }
  414.     public function removeComptesBancaire(CompteBancaire $comptesBancaire)
  415.     {
  416.         $this->comptesBancaires->removeElement($comptesBancaire);
  417.     }
  418.     public function getComptesBancaires(): Collection
  419.     {
  420.         return $this->comptesBancaires;
  421.     }
  422.     public function setMailTest(?bool $mailTest): Societe
  423.     {
  424.         $this->mailTest $mailTest;
  425.         return $this;
  426.     }
  427.     public function getMailTest(): ?bool
  428.     {
  429.         return $this->mailTest;
  430.     }
  431.     public function setEnInventaire(?bool $enInventaire): Societe
  432.     {
  433.         $this->enInventaire $enInventaire;
  434.         return $this;
  435.     }
  436.     public function getEnInventaire(): ?bool
  437.     {
  438.         return $this->enInventaire;
  439.     }
  440.     public function setDateDebutInventaire(?DateTime $dateDebutInventaire): Societe
  441.     {
  442.         $this->dateDebutInventaire $dateDebutInventaire;
  443.         return $this;
  444.     }
  445.     public function getDateDebutInventaire(): ?DateTime
  446.     {
  447.         return $this->dateDebutInventaire;
  448.     }
  449.     public function setDateFinInventaire(?DateTime $dateFinInventaire): Societe
  450.     {
  451.         $this->dateFinInventaire $dateFinInventaire;
  452.         return $this;
  453.     }
  454.     public function getDateFinInventaire(): ?DateTime
  455.     {
  456.         return $this->dateFinInventaire;
  457.     }
  458.     public function setFamilleComptaFraisFixe(?FamilleCompta $familleComptaFraisFixe): Societe
  459.     {
  460.         $this->familleComptaFraisFixe $familleComptaFraisFixe;
  461.         return $this;
  462.     }
  463.     public function getFamilleComptaFraisFixe(): ?FamilleCompta
  464.     {
  465.         return $this->familleComptaFraisFixe;
  466.     }
  467.     public function setFamilleComptaFraisPort(?FamilleCompta $familleComptaFraisPort): Societe
  468.     {
  469.         $this->familleComptaFraisPort $familleComptaFraisPort;
  470.         return $this;
  471.     }
  472.     public function getFamilleComptaFraisPort(): ?FamilleCompta
  473.     {
  474.         return $this->familleComptaFraisPort;
  475.     }
  476.     public function setSignatureMail(?string $signatureMail): Societe
  477.     {
  478.         $this->signatureMail $signatureMail;
  479.         return $this;
  480.     }
  481.     public function getSignatureMail(): ?string
  482.     {
  483.         return $this->signatureMail;
  484.     }
  485.     public function getTexteFacture(): ?string
  486.     {
  487.         return $this->texteFacture;
  488.     }
  489.     public function setTexteFacture(?string $texteFacture): Societe
  490.     {
  491.         $this->texteFacture $texteFacture;
  492.         return $this;
  493.     }
  494.     public function setDateDebutExercice(?DateTime $dateDebutExercice): Societe
  495.     {
  496.         $this->dateDebutExercice $dateDebutExercice;
  497.         return $this;
  498.     }
  499.     public function getDateDebutExercice(): ?DateTime
  500.     {
  501.         return $this->dateDebutExercice;
  502.     }
  503.     public function setDateFinExercice(?DateTime $dateFinExercice): Societe
  504.     {
  505.         $this->dateFinExercice $dateFinExercice;
  506.         return $this;
  507.     }
  508.     public function getDateFinExercice(): ?DateTime
  509.     {
  510.         return $this->dateFinExercice;
  511.     }
  512.     public function setFamilleComptaFraisAnnexes(?FamilleCompta $familleComptaFraisAnnexes): Societe
  513.     {
  514.         $this->familleComptaFraisAnnexes $familleComptaFraisAnnexes;
  515.         return $this;
  516.     }
  517.     public function getFamilleComptaFraisAnnexes(): ?FamilleCompta
  518.     {
  519.         return $this->familleComptaFraisAnnexes;
  520.     }
  521.     public function setApe(?string $ape): Societe
  522.     {
  523.         $this->ape $ape;
  524.         return $this;
  525.     }
  526.     public function getApe(): ?string
  527.     {
  528.         return $this->ape;
  529.     }
  530.     public function setMailerUser(?string $mailerUser): Societe
  531.     {
  532.         $this->mailerUser $mailerUser;
  533.         return $this;
  534.     }
  535.     public function getMailerUser(): ?string
  536.     {
  537.         return $this->mailerUser;
  538.     }
  539.     public function setMailerPassword(?string $mailerPassword): Societe
  540.     {
  541.         $this->mailerPassword $mailerPassword;
  542.         return $this;
  543.     }
  544.     public function getMailerPassword(): ?string
  545.     {
  546.         return $this->mailerPassword;
  547.     }
  548.     public function setMailerHost(?string $mailerHost): Societe
  549.     {
  550.         $this->mailerHost $mailerHost;
  551.         return $this;
  552.     }
  553.     public function getMailerHost(): ?string
  554.     {
  555.         return $this->mailerHost;
  556.     }
  557.     public function setMailerPort(?string $mailerPort): Societe
  558.     {
  559.         $this->mailerPort $mailerPort;
  560.         return $this;
  561.     }
  562.     public function getMailerPort(): ?string
  563.     {
  564.         return $this->mailerPort;
  565.     }
  566. }