src/Entity/Boutique.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\HttpFoundation\File\File;
  5. use Symfony\Component\HttpFoundation\File\UploadedFile;
  6. use Gedmo\Mapping\Annotation as Gedmo;
  7. /**
  8.  *@ORM\Table(name="gestock_boutique")
  9.  * @ORM\Entity(repositoryClass="App\Repository\BoutiqueRepository")
  10.  */
  11. class Boutique
  12. {
  13.     /**
  14.     * @Gedmo\Slug(fields={"nom", "id"})
  15.     * @ORM\Column(length=128, unique=true)
  16.     */
  17.     private $slug;
  18.     
  19.     /**
  20.      * @ORM\OneToOne(targetEntity="\App\Entity\Photo", cascade={"persist", "remove"})
  21.      */
  22.     private $logo;
  23.     
  24.     /**
  25.      * @ORM\OneToOne(targetEntity="\App\Entity\Settings", cascade={"persist", "remove"})
  26.      */
  27.     private $settings;
  28.     
  29.     /**
  30.      * @ORM\ManyToOne(targetEntity="\App\Entity\Pays")
  31.      */
  32.     private $pays;
  33.     
  34.     
  35.     /**
  36.      * @ORM\Id()
  37.      * @ORM\GeneratedValue()
  38.      * @ORM\Column(type="integer")
  39.      */
  40.     private $id;
  41.     /**
  42.      * @ORM\Column(type="string", length=255, nullable=true)
  43.      */
  44.     private $adresse;
  45.     /**
  46.      * @ORM\Column(type="string", length=255, nullable=true)
  47.      */
  48.     private $nom;
  49.     /**
  50.      * @ORM\Column(type="time", nullable=true)
  51.      */
  52.     private $heureDebutTravail;
  53.     /**
  54.      * @ORM\Column(type="time", nullable=true)
  55.      */
  56.     private $heureFinTravail;
  57.     /**
  58.      * @ORM\Column(type="float", nullable=true)
  59.      */
  60.     private $tempsDeTravail;
  61.     
  62.      /**
  63.      * @var string
  64.      *
  65.      * @ORM\Column(type="string", length=25, nullable=true)
  66.      */
  67.     private $sigle;
  68.     
  69.     /**
  70.      * @var string
  71.      *
  72.      * @ORM\Column(type="string", length=255, nullable=true)
  73.      */
  74.     private $email;
  75.     /**
  76.      * @var string
  77.      *
  78.      * @ORM\Column(type="string", length=255, nullable=true)
  79.      */
  80.     private $phone;
  81.     
  82.     
  83.     /**
  84.      * @var string
  85.      *
  86.      * @ORM\Column(type="string", length=255, nullable=true)
  87.      */
  88.     private $codePostal;
  89.     
  90.     /**
  91.      * @var string
  92.      *
  93.      * @ORM\Column(type="string", length=255, nullable=true)
  94.      */
  95.     private $ville;
  96.     
  97.     /**
  98.      * @var string
  99.      *
  100.      * @ORM\Column(type="string", length=255, nullable=true)
  101.      */
  102.     private $siteWeb;
  103.     
  104.     /**
  105.      * @var string
  106.      *
  107.      * @ORM\Column(type="string", length=255, nullable=true)
  108.      */
  109.     private $fax;
  110.     
  111.     /**
  112.      * @var string
  113.      *
  114.      * @ORM\Column(type="string", length=255, nullable=true)
  115.      */
  116.     private $statutJuridique;
  117.     
  118.     /**
  119.      * @var string
  120.      *
  121.      * @ORM\Column(type="float", nullable=true)
  122.      */
  123.     private $capital;
  124.     
  125.     /**
  126.      * @var string
  127.      *
  128.      * @ORM\Column(type="string", length=255, nullable=true)
  129.      */
  130.     private $matricule;
  131.     
  132.     /**
  133.      * @var string
  134.      * Pour une entreprise francaise
  135.      *
  136.      * @ORM\Column(type="string", length=255, nullable=true)
  137.      */
  138.     private $siret;
  139.     
  140.     /**
  141.      * @var string
  142.      * Pour une entreprise francaise
  143.      *
  144.      * @ORM\Column(type="string", length=255, nullable=true)
  145.      */
  146.     private $ape;
  147.     
  148.     /**
  149.      * @var string
  150.      * Pour une entreprise francaise
  151.      *
  152.      * @ORM\Column(type="string", length=255, nullable=true)
  153.      */
  154.     private $cc;
  155.     
  156.     /**
  157.      * @var boolean
  158.      *
  159.      * @ORM\Column(type="boolean", nullable=true)
  160.      */
  161.     private $factureTVA;
  162.     
  163.     /**
  164.      * @var string
  165.      *
  166.      * @ORM\Column(type="text", nullable=true)
  167.      */
  168.     private $mentionLegal;
  169.     
  170.     
  171.     /**
  172.      * @var string
  173.      *
  174.      * @ORM\Column(type="string", length=255, nullable=true)
  175.      */
  176.     private $banque;
  177.     
  178.     /**
  179.      * @var string
  180.      *
  181.      * @ORM\Column(type="string", length=255, nullable=true)
  182.      */
  183.     private $rib;
  184.     
  185.     /**
  186.      * @var string
  187.      *
  188.      * @ORM\Column(type="string", length=255, nullable=true)
  189.      */
  190.     private $iban;
  191.     
  192.     /**
  193.      * @var string
  194.      *
  195.      * @ORM\Column(type="string", length=255, nullable=true)
  196.      */
  197.     private $bic;
  198.     
  199.     /**
  200.      * @var string
  201.      *
  202.      * @ORM\Column(type="string", length=255, nullable=true)
  203.      */
  204.     private $urlFNEDeBase;
  205.     /**
  206.      * @var string
  207.      *
  208.      * @ORM\Column(type="string", length=255, nullable=true)
  209.      */
  210.     private $apiKeyFNE;
  211.     /**
  212.      * @var float
  213.      *
  214.      * @ORM\Column(type="float", nullable=true)
  215.      */
  216.     private $soldeTimbreFNE;
  217.     /**
  218.      * @var float
  219.      *
  220.      * @ORM\Column(type="string", length=255, nullable=true)
  221.      */
  222.     private $numeroCNPS;
  223.     
  224.     public function __construct()
  225.     {
  226.         $this->settings = new Settings;
  227.         $p = new Photo;
  228.         $p->setUrl('uploads/img/featured/logo.png');
  229.         $p->setOriginalUrl('uploads/img/featured/logo.png');
  230.         $p->setAlt('Logo');
  231.         $this->logo $p;
  232.         $this->factureTVA true;
  233.         $this->soldeTimbreFNE 0;
  234.         $this->urlFNEDeBase 'http://54.247.95.108/ws';
  235.         
  236.         //$this->mentionLegal = 'En cas de retard de paiement, sera exigible, conformément à l\'article L 441-6 du code de commerce, une indemnité forfaitaire pour frais de recouvrement de 40 euros. Aucun escompte ne sera accordé en cas de paiement anticipé.';
  237.         
  238.     }
  239.     public function getId(): ?int
  240.     {
  241.         return $this->id;
  242.     }
  243.     
  244.      /**
  245.      * Set nom
  246.      *
  247.      * @param string $nom
  248.      *
  249.      */
  250.     public function setNom($nom)
  251.     {
  252.         $this->nom $nom;
  253.         return $this;
  254.     }
  255.     /**
  256.      * Get nom
  257.      *
  258.      * @return string
  259.      */
  260.     public function getNom()
  261.     {
  262.         return $this->nom;
  263.     }
  264.     /**
  265.      * Set sigle
  266.      *
  267.      * @param string $sigle
  268.      *
  269.      * @return Hopital
  270.      */
  271.     public function setSigle($sigle)
  272.     {
  273.         $this->sigle $sigle;
  274.         return $this;
  275.     }
  276.     /**
  277.      * Get sigle
  278.      *
  279.      * @return string
  280.      */
  281.     public function getSigle()
  282.     {
  283.         return $this->sigle;
  284.     }
  285.     /**
  286.      * Set email
  287.      *
  288.      * @param string $email
  289.      *
  290.      * @return Hopital
  291.      */
  292.     public function setEmail($email)
  293.     {
  294.         $this->email $email;
  295.         return $this;
  296.     }
  297.     /**
  298.      * Get email
  299.      *
  300.      * @return string
  301.      */
  302.     public function getEmail()
  303.     {
  304.         return $this->email;
  305.     }
  306.     /**
  307.      * Set phone
  308.      *
  309.      * @param string $phone
  310.      *
  311.      * @return Hopital
  312.      */
  313.     public function setPhone($phone)
  314.     {
  315.         $this->phone $phone;
  316.         return $this;
  317.     }
  318.     /**
  319.      * Get phone
  320.      *
  321.      * @return string
  322.      */
  323.     public function getPhone()
  324.     {
  325.         return $this->phone;
  326.     }
  327.     /**
  328.      * Set adresse
  329.      *
  330.      * @param string $adresse
  331.      *
  332.      * @return Hopital
  333.      */
  334.     public function setAdresse($adresse)
  335.     {
  336.         $this->adresse $adresse;
  337.         return $this;
  338.     }
  339.     /**
  340.      * Get adresse
  341.      *
  342.      * @return string
  343.      */
  344.     public function getAdresse()
  345.     {
  346.         return $this->adresse;
  347.     }
  348.     
  349.     /**
  350.      * Set slug
  351.      *
  352.      * @param string $slug
  353.      *
  354.      * @return Boutique
  355.      */
  356.     public function setSlug($slug)
  357.     {
  358.         $this->slug $slug;
  359.         return $this;
  360.     }
  361.     /**
  362.      * Get slug
  363.      *
  364.      * @return string
  365.      */
  366.     public function getSlug()
  367.     {
  368.         return $this->slug;
  369.     }
  370.     
  371.     /**
  372.      * Set settings
  373.      *
  374.      * @param \App\Entity\Settings $settings
  375.      *
  376.      * @return Produit
  377.      */
  378.     public function setSettings(\App\Entity\Settings $settings)
  379.     {
  380.         $this->settings $settings;
  381.         return $this;
  382.     }
  383.     /**
  384.      * Get settings
  385.      *
  386.      * @return \App\Entity\Settings
  387.      */
  388.     public function getSettings()
  389.     {
  390.         return $this->settings;
  391.     }
  392.     public function getCodePostal(): ?string
  393.     {
  394.         return $this->codePostal;
  395.     }
  396.     public function setCodePostal(?string $codePostal): self
  397.     {
  398.         $this->codePostal $codePostal;
  399.         return $this;
  400.     }
  401.     public function getVille(): ?string
  402.     {
  403.         return $this->ville;
  404.     }
  405.     public function setVille(?string $ville): self
  406.     {
  407.         $this->ville $ville;
  408.         return $this;
  409.     }
  410.     public function getSiteWeb(): ?string
  411.     {
  412.         return $this->siteWeb;
  413.     }
  414.     public function setSiteWeb(?string $siteWeb): self
  415.     {
  416.         $this->siteWeb $siteWeb;
  417.         return $this;
  418.     }
  419.     public function getFax(): ?string
  420.     {
  421.         return $this->fax;
  422.     }
  423.     public function setFax(?string $fax): self
  424.     {
  425.         $this->fax $fax;
  426.         return $this;
  427.     }
  428.     public function getStatutJuridique(): ?string
  429.     {
  430.         return $this->statutJuridique;
  431.     }
  432.     public function setStatutJuridique(?string $statutJuridique): self
  433.     {
  434.         $this->statutJuridique $statutJuridique;
  435.         return $this;
  436.     }
  437.     public function getCapital(): ?float
  438.     {
  439.         return $this->capital;
  440.     }
  441.     public function setCapital(?float $capital): self
  442.     {
  443.         $this->capital $capital;
  444.         return $this;
  445.     }
  446.     public function getMatricule(): ?string
  447.     {
  448.         return $this->matricule;
  449.     }
  450.     public function setMatricule(?string $matricule): self
  451.     {
  452.         $this->matricule $matricule;
  453.         return $this;
  454.     }
  455.     public function getFactureTVA(): ?bool
  456.     {
  457.         return $this->factureTVA;
  458.     }
  459.     
  460.     public function setFactureTVA(?bool $factureTVA): self
  461.     {
  462.         $this->factureTVA $factureTVA;
  463.         return $this;
  464.     }
  465.     public function getMentionLegal(): ?string
  466.     {
  467.         return $this->mentionLegal;
  468.     }
  469.     public function setMentionLegal(?string $mentionLegal): self
  470.     {
  471.         $this->mentionLegal $mentionLegal;
  472.         return $this;
  473.     }
  474.     public function getBanque(): ?string
  475.     {
  476.         return $this->banque;
  477.     }
  478.     public function setBanque(?string $banque): self
  479.     {
  480.         $this->banque $banque;
  481.         return $this;
  482.     }
  483.     public function getRib(): ?string
  484.     {
  485.         return $this->rib;
  486.     }
  487.     public function setRib(?string $rib): self
  488.     {
  489.         $this->rib $rib;
  490.         return $this;
  491.     }
  492.     public function getIban(): ?string
  493.     {
  494.         return $this->iban;
  495.     }
  496.     public function setIban(?string $iban): self
  497.     {
  498.         $this->iban $iban;
  499.         return $this;
  500.     }
  501.     public function getBic(): ?string
  502.     {
  503.         return $this->bic;
  504.     }
  505.     public function setBic(?string $bic): self
  506.     {
  507.         $this->bic $bic;
  508.         return $this;
  509.     }
  510.     public function getPays(): ?Pays
  511.     {
  512.         return $this->pays;
  513.     }
  514.     public function setPays(?Pays $pays): self
  515.     {
  516.         $this->pays $pays;
  517.         return $this;
  518.     }
  519.     public function getSiret(): ?string
  520.     {
  521.         return $this->siret;
  522.     }
  523.     public function setSiret(?string $siret): self
  524.     {
  525.         $this->siret $siret;
  526.         return $this;
  527.     }
  528.     public function getApe(): ?string
  529.     {
  530.         return $this->ape;
  531.     }
  532.     public function setApe(?string $ape): self
  533.     {
  534.         $this->ape $ape;
  535.         return $this;
  536.     }
  537.     public function getCc(): ?string
  538.     {
  539.         return $this->cc;
  540.     }
  541.     public function setCc(?string $cc): self
  542.     {
  543.         $this->cc $cc;
  544.         return $this;
  545.     }
  546.     public function getLogo(): ?Photo
  547.     {
  548.         return $this->logo;
  549.     }
  550.     public function setLogo(?Photo $logo null): self
  551.     {
  552.         $this->logo $logo;
  553.         return $this;
  554.     }
  555.     public function isFactureTVA(): ?bool
  556.     {
  557.         return $this->factureTVA;
  558.     }
  559.     public function getHeureDebutTravail(): ?\DateTimeInterface
  560.     {
  561.         return $this->heureDebutTravail;
  562.     }
  563.     public function setHeureDebutTravail(?\DateTimeInterface $heureDebutTravail): self
  564.     {
  565.         $this->heureDebutTravail $heureDebutTravail;
  566.         return $this;
  567.     }
  568.     public function getHeureFinTravail(): ?\DateTimeInterface
  569.     {
  570.         return $this->heureFinTravail;
  571.     }
  572.     public function setHeureFinTravail(?\DateTimeInterface $heureFinTravail): self
  573.     {
  574.         $this->heureFinTravail $heureFinTravail;
  575.         return $this;
  576.     }
  577.     public function getTempsDeTravail(): ?float
  578.     {
  579.         return $this->tempsDeTravail;
  580.     }
  581.     public function setTempsDeTravail(?float $tempsDeTravail): self
  582.     {
  583.         $this->tempsDeTravail $tempsDeTravail;
  584.         return $this;
  585.     }
  586.     public function getUrlFNEDeBase(): ?string
  587.     {
  588.         return $this->urlFNEDeBase;
  589.     }
  590.     public function setUrlFNEDeBase(?string $urlFNEDeBase): self
  591.     {
  592.         $this->urlFNEDeBase $urlFNEDeBase;
  593.         return $this;
  594.     }
  595.     public function getSoldeTimbreFNE(): ?float
  596.     {
  597.         return $this->soldeTimbreFNE;
  598.     }
  599.     public function setSoldeTimbreFNE(?float $soldeTimbreFNE): self
  600.     {
  601.         $this->soldeTimbreFNE $soldeTimbreFNE;
  602.         return $this;
  603.     }
  604.     public function getApiKeyFNE(): ?string
  605.     {
  606.         return $this->apiKeyFNE;
  607.     }
  608.     public function setApiKeyFNE(?string $apiKeyFNE): self
  609.     {
  610.         $this->apiKeyFNE $apiKeyFNE;
  611.         return $this;
  612.     }
  613.     public function getNumeroCNPS(): ?string
  614.     {
  615.         return $this->numeroCNPS;
  616.     }
  617.     public function setNumeroCNPS(?string $numeroCNPS): self
  618.     {
  619.         $this->numeroCNPS $numeroCNPS;
  620.         return $this;
  621.     }
  622.    
  623. }