<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\HttpFoundation\File\File;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Gedmo\Mapping\Annotation as Gedmo;
/**
*@ORM\Table(name="gestock_boutique")
* @ORM\Entity(repositoryClass="App\Repository\BoutiqueRepository")
*/
class Boutique
{
/**
* @Gedmo\Slug(fields={"nom", "id"})
* @ORM\Column(length=128, unique=true)
*/
private $slug;
/**
* @ORM\OneToOne(targetEntity="\App\Entity\Photo", cascade={"persist", "remove"})
*/
private $logo;
/**
* @ORM\OneToOne(targetEntity="\App\Entity\Settings", cascade={"persist", "remove"})
*/
private $settings;
/**
* @ORM\ManyToOne(targetEntity="\App\Entity\Pays")
*/
private $pays;
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $adresse;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nom;
/**
* @ORM\Column(type="time", nullable=true)
*/
private $heureDebutTravail;
/**
* @ORM\Column(type="time", nullable=true)
*/
private $heureFinTravail;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $tempsDeTravail;
/**
* @var string
*
* @ORM\Column(type="string", length=25, nullable=true)
*/
private $sigle;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $email;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $phone;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $codePostal;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ville;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $siteWeb;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $fax;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $statutJuridique;
/**
* @var string
*
* @ORM\Column(type="float", nullable=true)
*/
private $capital;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $matricule;
/**
* @var string
* Pour une entreprise francaise
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $siret;
/**
* @var string
* Pour une entreprise francaise
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ape;
/**
* @var string
* Pour une entreprise francaise
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cc;
/**
* @var boolean
*
* @ORM\Column(type="boolean", nullable=true)
*/
private $factureTVA;
/**
* @var string
*
* @ORM\Column(type="text", nullable=true)
*/
private $mentionLegal;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $banque;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $rib;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $iban;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $bic;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $urlFNEDeBase;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $apiKeyFNE;
/**
* @var float
*
* @ORM\Column(type="float", nullable=true)
*/
private $soldeTimbreFNE;
/**
* @var float
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $numeroCNPS;
public function __construct()
{
$this->settings = new Settings;
$p = new Photo;
$p->setUrl('uploads/img/featured/logo.png');
$p->setOriginalUrl('uploads/img/featured/logo.png');
$p->setAlt('Logo');
$this->logo = $p;
$this->factureTVA = true;
$this->soldeTimbreFNE = 0;
$this->urlFNEDeBase = 'http://54.247.95.108/ws';
//$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é.';
}
public function getId(): ?int
{
return $this->id;
}
/**
* Set nom
*
* @param string $nom
*
*/
public function setNom($nom)
{
$this->nom = $nom;
return $this;
}
/**
* Get nom
*
* @return string
*/
public function getNom()
{
return $this->nom;
}
/**
* Set sigle
*
* @param string $sigle
*
* @return Hopital
*/
public function setSigle($sigle)
{
$this->sigle = $sigle;
return $this;
}
/**
* Get sigle
*
* @return string
*/
public function getSigle()
{
return $this->sigle;
}
/**
* Set email
*
* @param string $email
*
* @return Hopital
*/
public function setEmail($email)
{
$this->email = $email;
return $this;
}
/**
* Get email
*
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Set phone
*
* @param string $phone
*
* @return Hopital
*/
public function setPhone($phone)
{
$this->phone = $phone;
return $this;
}
/**
* Get phone
*
* @return string
*/
public function getPhone()
{
return $this->phone;
}
/**
* Set adresse
*
* @param string $adresse
*
* @return Hopital
*/
public function setAdresse($adresse)
{
$this->adresse = $adresse;
return $this;
}
/**
* Get adresse
*
* @return string
*/
public function getAdresse()
{
return $this->adresse;
}
/**
* Set slug
*
* @param string $slug
*
* @return Boutique
*/
public function setSlug($slug)
{
$this->slug = $slug;
return $this;
}
/**
* Get slug
*
* @return string
*/
public function getSlug()
{
return $this->slug;
}
/**
* Set settings
*
* @param \App\Entity\Settings $settings
*
* @return Produit
*/
public function setSettings(\App\Entity\Settings $settings)
{
$this->settings = $settings;
return $this;
}
/**
* Get settings
*
* @return \App\Entity\Settings
*/
public function getSettings()
{
return $this->settings;
}
public function getCodePostal(): ?string
{
return $this->codePostal;
}
public function setCodePostal(?string $codePostal): self
{
$this->codePostal = $codePostal;
return $this;
}
public function getVille(): ?string
{
return $this->ville;
}
public function setVille(?string $ville): self
{
$this->ville = $ville;
return $this;
}
public function getSiteWeb(): ?string
{
return $this->siteWeb;
}
public function setSiteWeb(?string $siteWeb): self
{
$this->siteWeb = $siteWeb;
return $this;
}
public function getFax(): ?string
{
return $this->fax;
}
public function setFax(?string $fax): self
{
$this->fax = $fax;
return $this;
}
public function getStatutJuridique(): ?string
{
return $this->statutJuridique;
}
public function setStatutJuridique(?string $statutJuridique): self
{
$this->statutJuridique = $statutJuridique;
return $this;
}
public function getCapital(): ?float
{
return $this->capital;
}
public function setCapital(?float $capital): self
{
$this->capital = $capital;
return $this;
}
public function getMatricule(): ?string
{
return $this->matricule;
}
public function setMatricule(?string $matricule): self
{
$this->matricule = $matricule;
return $this;
}
public function getFactureTVA(): ?bool
{
return $this->factureTVA;
}
public function setFactureTVA(?bool $factureTVA): self
{
$this->factureTVA = $factureTVA;
return $this;
}
public function getMentionLegal(): ?string
{
return $this->mentionLegal;
}
public function setMentionLegal(?string $mentionLegal): self
{
$this->mentionLegal = $mentionLegal;
return $this;
}
public function getBanque(): ?string
{
return $this->banque;
}
public function setBanque(?string $banque): self
{
$this->banque = $banque;
return $this;
}
public function getRib(): ?string
{
return $this->rib;
}
public function setRib(?string $rib): self
{
$this->rib = $rib;
return $this;
}
public function getIban(): ?string
{
return $this->iban;
}
public function setIban(?string $iban): self
{
$this->iban = $iban;
return $this;
}
public function getBic(): ?string
{
return $this->bic;
}
public function setBic(?string $bic): self
{
$this->bic = $bic;
return $this;
}
public function getPays(): ?Pays
{
return $this->pays;
}
public function setPays(?Pays $pays): self
{
$this->pays = $pays;
return $this;
}
public function getSiret(): ?string
{
return $this->siret;
}
public function setSiret(?string $siret): self
{
$this->siret = $siret;
return $this;
}
public function getApe(): ?string
{
return $this->ape;
}
public function setApe(?string $ape): self
{
$this->ape = $ape;
return $this;
}
public function getCc(): ?string
{
return $this->cc;
}
public function setCc(?string $cc): self
{
$this->cc = $cc;
return $this;
}
public function getLogo(): ?Photo
{
return $this->logo;
}
public function setLogo(?Photo $logo = null): self
{
$this->logo = $logo;
return $this;
}
public function isFactureTVA(): ?bool
{
return $this->factureTVA;
}
public function getHeureDebutTravail(): ?\DateTimeInterface
{
return $this->heureDebutTravail;
}
public function setHeureDebutTravail(?\DateTimeInterface $heureDebutTravail): self
{
$this->heureDebutTravail = $heureDebutTravail;
return $this;
}
public function getHeureFinTravail(): ?\DateTimeInterface
{
return $this->heureFinTravail;
}
public function setHeureFinTravail(?\DateTimeInterface $heureFinTravail): self
{
$this->heureFinTravail = $heureFinTravail;
return $this;
}
public function getTempsDeTravail(): ?float
{
return $this->tempsDeTravail;
}
public function setTempsDeTravail(?float $tempsDeTravail): self
{
$this->tempsDeTravail = $tempsDeTravail;
return $this;
}
public function getUrlFNEDeBase(): ?string
{
return $this->urlFNEDeBase;
}
public function setUrlFNEDeBase(?string $urlFNEDeBase): self
{
$this->urlFNEDeBase = $urlFNEDeBase;
return $this;
}
public function getSoldeTimbreFNE(): ?float
{
return $this->soldeTimbreFNE;
}
public function setSoldeTimbreFNE(?float $soldeTimbreFNE): self
{
$this->soldeTimbreFNE = $soldeTimbreFNE;
return $this;
}
public function getApiKeyFNE(): ?string
{
return $this->apiKeyFNE;
}
public function setApiKeyFNE(?string $apiKeyFNE): self
{
$this->apiKeyFNE = $apiKeyFNE;
return $this;
}
public function getNumeroCNPS(): ?string
{
return $this->numeroCNPS;
}
public function setNumeroCNPS(?string $numeroCNPS): self
{
$this->numeroCNPS = $numeroCNPS;
return $this;
}
}