src/Entity/Boutique.php line 17

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 Symfony\Component\Validator\Constraints as Assert;
  7. use Gedmo\Mapping\Annotation as Gedmo;
  8. /**
  9.  *@ORM\Table(name="boutique")
  10.  * @ORM\HasLifecycleCallbacks()
  11.  * @ORM\Entity(repositoryClass="App\Repository\BoutiqueRepository")
  12.  */
  13. class Boutique
  14. {
  15.     /**
  16.      * @ORM\ManyToOne(targetEntity="\App\Entity\AppUser")
  17.      */
  18.     private $user;
  19.     
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity="\App\Entity\CategorieEntreprise")
  22.      */
  23.     private $categorieEntreprise;
  24.     
  25.     /**
  26.     * @Gedmo\Slug(fields={"nom", "id"})
  27.     * @ORM\Column(length=128, unique=true)
  28.     */
  29.     private $slug;
  30.     
  31.     /**
  32.      * @ORM\OneToOne(targetEntity="\App\Entity\Photo", cascade={"persist", "remove"})
  33.      */
  34.     private $logo;
  35.     
  36.     /**
  37.      * @ORM\OneToOne(targetEntity="\App\Entity\Photo", cascade={"persist", "remove"})
  38.      */
  39.     private $videoPresentation;
  40.     
  41.     /**
  42.      * @ORM\OneToOne(targetEntity="\App\Entity\Photo", cascade={"persist", "remove"})
  43.      */
  44.     private $coverPhoto;
  45.     
  46.     /**
  47.      * @ORM\OneToOne(targetEntity="\App\Entity\Settings", cascade={"persist", "remove"})
  48.      */
  49.     private $settings;
  50.     
  51.     /**
  52.      * @ORM\ManyToOne(targetEntity="\App\Entity\Pays")
  53.      */
  54.     private $pays;
  55.     
  56.     
  57.     /**
  58.      * @ORM\Id()
  59.      * @ORM\GeneratedValue()
  60.      * @ORM\Column(type="integer")
  61.      */
  62.     private $id;
  63.     /**
  64.      * @ORM\Column(type="string", length=255, nullable=true)
  65.      */
  66.     private $adresse;
  67.      /**
  68.      * @ORM\Column(type="string", length=255, nullable=true)
  69.      */
  70.     private $telephone;
  71.     /**
  72.      * @ORM\Column(type="string", length=1024, nullable=true)
  73.      */
  74.     private $pushNotificationToken;
  75.     /**
  76.      * @ORM\Column(type="string", length=255, nullable=true)
  77.      */
  78.     private $adresse3Words;
  79.     /**
  80.      * @ORM\Column(type="float", nullable=true)
  81.      */
  82.     private $solde;
  83.     
  84.     /**
  85.      * @ORM\Column(type="string", length=255, nullable=true)
  86.      */
  87.     private $latitude;
  88.     
  89.     /**
  90.      * @ORM\Column(type="string", length=255, nullable=true)
  91.      */
  92.     private $longitude;
  93.     /**
  94.      * @ORM\Column(type="boolean", nullable=true)
  95.      */
  96.     private $estPro;
  97.     
  98.     /**
  99.      * @ORM\Column(type="boolean", nullable=true)
  100.      */
  101.     private $estBloque;
  102.     
  103.     /**
  104.      * @ORM\Column(type="datetime", nullable=true)
  105.      */
  106.     private $datePremium;
  107.     
  108.     /**
  109.      * @ORM\Column(type="text", nullable=true)
  110.      */
  111.     private $horaireDOuverture;
  112.     
  113.     /**
  114.      * @ORM\Column(type="float", nullable=true)
  115.      */
  116.     private $adresseGPSLat;
  117.     
  118.     /**
  119.      * @ORM\Column(type="float", nullable=true)
  120.      */
  121.     private $adresseGPSLong;
  122.     /**
  123.      * @ORM\Column(type="datetime", nullable=true)
  124.      */
  125.     private $laDate;
  126.     /**
  127.      * @ORM\Column(type="integer", nullable=true)
  128.      */
  129.     private $nombreAvis;
  130.     
  131.     /**
  132.      * @ORM\Column(type="float", nullable=true)
  133.      */
  134.     private $moyenneAvis;
  135.     /**
  136.      * @ORM\Column(type="string", length=255)
  137.      */
  138.     private $nom;
  139.     /**
  140.      * @ORM\Column(type="float", nullable=true)
  141.      */
  142.     private $moyenneNote;
  143.     
  144.     /**
  145.      * @ORM\Column(type="integer", nullable=true)
  146.      */
  147.     private $nombreDeVisite;
  148.     
  149.     /**
  150.      * @ORM\Column(type="boolean", nullable=true)
  151.      */
  152.     private $estCertifie;
  153.     /**
  154.      * @ORM\Column(type="boolean", nullable=true)
  155.      */
  156.     private $estSupprime;
  157.     
  158.      /**
  159.      * @var string
  160.      *
  161.      * @ORM\Column(type="string", length=25, nullable=true)
  162.      */
  163.     private $sigle;
  164.     
  165.     /**
  166.      * @var string
  167.      *
  168.      * @ORM\Column(type="string", length=255, nullable=true)
  169.      */
  170.     private $email;
  171.     /**
  172.      * @var string
  173.      *
  174.      * @ORM\Column(type="string", length=255, nullable=true)
  175.      */
  176.     private $phone;
  177.     
  178.     
  179.     /**
  180.      * @var string
  181.      *
  182.      * @ORM\Column(type="string", length=255, nullable=true)
  183.      */
  184.     private $codePostal;
  185.     
  186.     /**
  187.      * @var string
  188.      *
  189.      * @ORM\Column(type="string", length=255, nullable=true)
  190.      */
  191.     private $ville;
  192.     
  193.     /**
  194.      * @var string
  195.      *
  196.      * @ORM\Column(type="string", length=255, nullable=true)
  197.      */
  198.     private $siteWeb;
  199.     
  200.     /**
  201.      * @var string
  202.      *
  203.      * @ORM\Column(type="text", nullable=true)
  204.      */
  205.     private $description;
  206.     
  207.     /**
  208.      * @var string
  209.      *
  210.      * @ORM\Column(type="string", length=255, nullable=true)
  211.      */
  212.     private $fax;
  213.     
  214.     /**
  215.      * @var string
  216.      *
  217.      * @ORM\Column(type="string", length=255, nullable=true)
  218.      */
  219.     private $statutJuridique;
  220.     
  221.     /**
  222.      * @var string
  223.      *
  224.      * @ORM\Column(type="float", nullable=true)
  225.      */
  226.     private $capital;
  227.     
  228.     /**
  229.      * @var string
  230.      *
  231.      * @ORM\Column(type="string", length=255, nullable=true)
  232.      */
  233.     private $matricule;
  234.     
  235.     /**
  236.      * @var string
  237.      * Pour une entreprise francaise
  238.      *
  239.      * @ORM\Column(type="string", length=255, nullable=true)
  240.      */
  241.     private $siret;
  242.     
  243.     /**
  244.      * @var string
  245.      * Pour une entreprise francaise
  246.      *
  247.      * @ORM\Column(type="string", length=255, nullable=true)
  248.      */
  249.     private $ape;
  250.     
  251.     /**
  252.      * @var string
  253.      * Pour une entreprise francaise
  254.      *
  255.      * @ORM\Column(type="string", length=255, nullable=true)
  256.      */
  257.     private $cc;
  258.     
  259.     /**
  260.      * @var boolean
  261.      *
  262.      * @ORM\Column(type="boolean", nullable=true)
  263.      */
  264.     private $factureTVA;
  265.     
  266.     /**
  267.      * @var string
  268.      *
  269.      * @ORM\Column(type="text", nullable=true)
  270.      */
  271.     private $mentionLegal;
  272.     
  273.     
  274.     /**
  275.      * @var string
  276.      *
  277.      * @ORM\Column(type="string", length=255, nullable=true)
  278.      */
  279.     private $banque;
  280.     
  281.     /**
  282.      * @var string
  283.      *
  284.      * @ORM\Column(type="string", length=255, nullable=true)
  285.      */
  286.     private $rib;
  287.     
  288.     /**
  289.      * @var string
  290.      *
  291.      * @ORM\Column(type="string", length=255, nullable=true)
  292.      */
  293.     private $iban;
  294.     
  295.     /**
  296.      * @var string
  297.      *
  298.      * @ORM\Column(type="string", length=255, nullable=true)
  299.      */
  300.     private $bic;
  301.     
  302.     /**
  303.      * @var string|null
  304.      *
  305.      * @ORM\Column(name="annee", type="string", length=255, nullable=true)
  306.      */
  307.     private $annee;
  308.     
  309.     /**
  310.      * @var string|null
  311.      *
  312.      * @ORM\Column(name="mois", type="string", length=255, nullable=true)
  313.      */
  314.     private $mois;
  315.     /**
  316.      * @var string
  317.      *
  318.      * @ORM\Column(name="qualification", type="string", length=255, nullable=true)
  319.      */
  320.     private $qualification;
  321.     /**
  322.      * @var string
  323.      *
  324.      * @ORM\Column(name="disponibilite", type="string", length=225, nullable=true)
  325.      */
  326.     private $disponibilite;
  327.     /**
  328.      * @var string
  329.      *
  330.      * @ORM\Column(name="gamme_de_prix", type="string", length=225, nullable=true)
  331.      */
  332.     private $gammeDePrix;
  333.     /**
  334.      * @var string
  335.      *
  336.      * @ORM\Column(name="main_d_oeuvre", type="string", length=225, nullable=true)
  337.      */
  338.     private $mainDOeuvre;
  339.      /**
  340.      * @var string
  341.      *
  342.      * @ORM\Column(name="zone_d_intervention", type="string", length=225, nullable=true)
  343.      */
  344.     private $zoneDIntervention;
  345.     
  346.     public function __construct()
  347.     {
  348.         $this->settings = new Settings;
  349.         $p = new Photo;
  350.         $p->setUrl('uploads/img/featured/logo.png');
  351.         $p->setAlt('Logo');
  352.         $this->logo $p;
  353.         $this->moyenneNote 0;
  354.         $this->nombreAvis 0;
  355.         $this->estSupprime 0;
  356.         $this->moyenneAvis 0;
  357.         $this->factureTVA true;
  358.         $this->estBloque false;
  359.         $this->laDate = new \DateTime();
  360.         $this->mois date('mY');
  361.         $this->annee date('Y');
  362.     }
  363.     public function getId(): ?int
  364.     {
  365.         return $this->id;
  366.     }
  367.     
  368.      /**
  369.      * Set nom
  370.      *
  371.      * @param string $nom
  372.      *
  373.      * @return Hopital
  374.      */
  375.     public function setNom($nom)
  376.     {
  377.         $this->nom $nom;
  378.         return $this;
  379.     }
  380.     /**
  381.      * Get nom
  382.      *
  383.      * @return string
  384.      */
  385.     public function getNom()
  386.     {
  387.         return $this->nom;
  388.     }
  389.     /**
  390.      * Set sigle
  391.      *
  392.      * @param string $sigle
  393.      *
  394.      * @return Hopital
  395.      */
  396.     public function setSigle($sigle)
  397.     {
  398.         $this->sigle $sigle;
  399.         return $this;
  400.     }
  401.     /**
  402.      * Get sigle
  403.      *
  404.      * @return string
  405.      */
  406.     public function getSigle()
  407.     {
  408.         return $this->sigle;
  409.     }
  410.     /**
  411.      * Set email
  412.      *
  413.      * @param string $email
  414.      *
  415.      * @return Hopital
  416.      */
  417.     public function setEmail($email)
  418.     {
  419.         $this->email $email;
  420.         return $this;
  421.     }
  422.     /**
  423.      * Get email
  424.      *
  425.      * @return string
  426.      */
  427.     public function getEmail()
  428.     {
  429.         return $this->email;
  430.     }
  431.     /**
  432.      * Set phone
  433.      *
  434.      * @param string $phone
  435.      *
  436.      * @return Hopital
  437.      */
  438.     public function setPhone($phone)
  439.     {
  440.         $this->phone $phone;
  441.         return $this;
  442.     }
  443.     /**
  444.      * Get phone
  445.      *
  446.      * @return string
  447.      */
  448.     public function getPhone()
  449.     {
  450.         return $this->phone;
  451.     }
  452.     /**
  453.      * Set adresse
  454.      *
  455.      * @param string $adresse
  456.      *
  457.      * @return Hopital
  458.      */
  459.     public function setAdresse($adresse)
  460.     {
  461.         $this->adresse $adresse;
  462.         return $this;
  463.     }
  464.     /**
  465.      * Get adresse
  466.      *
  467.      * @return string
  468.      */
  469.     public function getAdresse()
  470.     {
  471.         return $this->adresse;
  472.     }
  473.     
  474.     /**
  475.      * Set slug
  476.      *
  477.      * @param string $slug
  478.      *
  479.      * @return Boutique
  480.      */
  481.     public function setSlug($slug)
  482.     {
  483.         $this->slug $slug;
  484.         return $this;
  485.     }
  486.     /**
  487.      * Get slug
  488.      *
  489.      * @return string
  490.      */
  491.     public function getSlug()
  492.     {
  493.         return $this->slug;
  494.     }
  495.     
  496.     /**
  497.      * Set settings
  498.      *
  499.      * @param \App\Entity\Settings $settings
  500.      *
  501.      * @return Produit
  502.      */
  503.     public function setSettings(\App\Entity\Settings $settings)
  504.     {
  505.         $this->settings $settings;
  506.         return $this;
  507.     }
  508.     /**
  509.      * Get settings
  510.      *
  511.      * @return \App\Entity\Settings
  512.      */
  513.     public function getSettings()
  514.     {
  515.         return $this->settings;
  516.     }
  517.     public function getCodePostal(): ?string
  518.     {
  519.         return $this->codePostal;
  520.     }
  521.     public function setCodePostal(?string $codePostal): self
  522.     {
  523.         $this->codePostal $codePostal;
  524.         return $this;
  525.     }
  526.     public function getVille(): ?string
  527.     {
  528.         return $this->ville;
  529.     }
  530.     public function setVille(?string $ville): self
  531.     {
  532.         $this->ville $ville;
  533.         return $this;
  534.     }
  535.     public function getSiteWeb(): ?string
  536.     {
  537.         return $this->siteWeb;
  538.     }
  539.     public function setSiteWeb(?string $siteWeb): self
  540.     {
  541.         $this->siteWeb $siteWeb;
  542.         return $this;
  543.     }
  544.     public function getFax(): ?string
  545.     {
  546.         return $this->fax;
  547.     }
  548.     public function setFax(?string $fax): self
  549.     {
  550.         $this->fax $fax;
  551.         return $this;
  552.     }
  553.     public function getStatutJuridique(): ?string
  554.     {
  555.         return $this->statutJuridique;
  556.     }
  557.     public function setStatutJuridique(?string $statutJuridique): self
  558.     {
  559.         $this->statutJuridique $statutJuridique;
  560.         return $this;
  561.     }
  562.     public function getCapital(): ?float
  563.     {
  564.         return $this->capital;
  565.     }
  566.     public function setCapital(?float $capital): self
  567.     {
  568.         $this->capital $capital;
  569.         return $this;
  570.     }
  571.     public function getMatricule(): ?float
  572.     {
  573.         return $this->matricule;
  574.     }
  575.     public function setMatricule(?float $matricule): self
  576.     {
  577.         $this->matricule $matricule;
  578.         return $this;
  579.     }
  580.     public function getFactureTVA(): ?bool
  581.     {
  582.         return $this->factureTVA;
  583.     }
  584.     
  585.     public function setFactureTVA(?bool $factureTVA): self
  586.     {
  587.         $this->factureTVA $factureTVA;
  588.         return $this;
  589.     }
  590.     public function getMentionLegal(): ?string
  591.     {
  592.         return $this->mentionLegal;
  593.     }
  594.     public function setMentionLegal(?string $mentionLegal): self
  595.     {
  596.         $this->mentionLegal $mentionLegal;
  597.         return $this;
  598.     }
  599.     public function getBanque(): ?string
  600.     {
  601.         return $this->banque;
  602.     }
  603.     public function setBanque(?string $banque): self
  604.     {
  605.         $this->banque $banque;
  606.         return $this;
  607.     }
  608.     public function getRib(): ?string
  609.     {
  610.         return $this->rib;
  611.     }
  612.     public function setRib(?string $rib): self
  613.     {
  614.         $this->rib $rib;
  615.         return $this;
  616.     }
  617.     public function getIban(): ?string
  618.     {
  619.         return $this->iban;
  620.     }
  621.     public function setIban(?string $iban): self
  622.     {
  623.         $this->iban $iban;
  624.         return $this;
  625.     }
  626.     public function getBic(): ?string
  627.     {
  628.         return $this->bic;
  629.     }
  630.     public function setBic(?string $bic): self
  631.     {
  632.         $this->bic $bic;
  633.         return $this;
  634.     }
  635.     public function getPays(): ?Pays
  636.     {
  637.         return $this->pays;
  638.     }
  639.     public function setPays(?Pays $pays): self
  640.     {
  641.         $this->pays $pays;
  642.         return $this;
  643.     }
  644.     public function getSiret(): ?string
  645.     {
  646.         return $this->siret;
  647.     }
  648.     public function setSiret(?string $siret): self
  649.     {
  650.         $this->siret $siret;
  651.         return $this;
  652.     }
  653.     public function getApe(): ?string
  654.     {
  655.         return $this->ape;
  656.     }
  657.     public function setApe(?string $ape): self
  658.     {
  659.         $this->ape $ape;
  660.         return $this;
  661.     }
  662.     public function getCc(): ?string
  663.     {
  664.         return $this->cc;
  665.     }
  666.     public function setCc(?string $cc): self
  667.     {
  668.         $this->cc $cc;
  669.         return $this;
  670.     }
  671.     public function getLogo(): ?Photo
  672.     {
  673.         return $this->logo;
  674.     }
  675.     public function setLogo(?Photo $logo null): self
  676.     {
  677.         $this->logo $logo;
  678.         return $this;
  679.     }
  680.     public function getCategorieEntreprise(): ?CategorieEntreprise
  681.     {
  682.         return $this->categorieEntreprise;
  683.     }
  684.     public function setCategorieEntreprise(?CategorieEntreprise $categorieEntreprise): self
  685.     {
  686.         $this->categorieEntreprise $categorieEntreprise;
  687.         return $this;
  688.     }
  689.     public function getDescription(): ?string
  690.     {
  691.         return $this->description;
  692.     }
  693.     public function setDescription(?string $description): self
  694.     {
  695.         $this->description $description;
  696.         return $this;
  697.     }
  698.     public function getMoyenneNote(): ?float
  699.     {
  700.         return $this->moyenneNote;
  701.     }
  702.     public function setMoyenneNote(?float $moyenneNote): self
  703.     {
  704.         $this->moyenneNote $moyenneNote;
  705.         return $this;
  706.     }
  707.     public function getNombreAvis(): ?int
  708.     {
  709.         return $this->nombreAvis;
  710.     }
  711.     public function setNombreAvis(?int $nombreAvis): self
  712.     {
  713.         $this->nombreAvis $nombreAvis;
  714.         return $this;
  715.     }
  716.     public function getMoyenneAvis(): ?float
  717.     {
  718.         return $this->moyenneAvis;
  719.     }
  720.     public function setMoyenneAvis(?float $moyenneAvis): self
  721.     {
  722.         $this->moyenneAvis $moyenneAvis;
  723.         return $this;
  724.     }
  725.     public function getLaDate(): ?\DateTimeInterface
  726.     {
  727.         return $this->laDate;
  728.     }
  729.     public function setLaDate(?\DateTimeInterface $laDate): self
  730.     {
  731.         $this->laDate $laDate;
  732.         return $this;
  733.     }
  734.     public function getAnnee(): ?string
  735.     {
  736.         return $this->annee;
  737.     }
  738.     public function setAnnee(?string $annee): self
  739.     {
  740.         $this->annee $annee;
  741.         return $this;
  742.     }
  743.     public function getMois(): ?string
  744.     {
  745.         return $this->mois;
  746.     }
  747.     public function setMois(?string $mois): self
  748.     {
  749.         $this->mois $mois;
  750.         return $this;
  751.     }
  752.     public function getNombreDeVisite(): ?int
  753.     {
  754.         return $this->nombreDeVisite;
  755.     }
  756.     public function setNombreDeVisite(?int $nombreDeVisite): self
  757.     {
  758.         $this->nombreDeVisite $nombreDeVisite;
  759.         return $this;
  760.     }
  761.     public function getEstCertifie(): ?bool
  762.     {
  763.         return $this->estCertifie;
  764.     }
  765.     public function setEstCertifie(?bool $estCertifie): self
  766.     {
  767.         $this->estCertifie $estCertifie;
  768.         return $this;
  769.     }
  770.     public function getEstPro(): ?bool
  771.     {
  772.         return $this->estPro;
  773.     }
  774.     public function setEstPro(?bool $estPro): self
  775.     {
  776.         $this->estPro $estPro;
  777.         return $this;
  778.     }
  779.     public function getVideoPresentation(): ?Photo
  780.     {
  781.         return $this->videoPresentation;
  782.     }
  783.     public function setVideoPresentation(?Photo $videoPresentation): self
  784.     {
  785.         $this->videoPresentation $videoPresentation;
  786.         return $this;
  787.     }
  788.     public function getCoverPhoto(): ?Photo
  789.     {
  790.         return $this->coverPhoto;
  791.     }
  792.     public function setCoverPhoto(?Photo $coverPhoto): self
  793.     {
  794.         $this->coverPhoto $coverPhoto;
  795.         return $this;
  796.     }
  797.     public function getHoraireDOuverture(): ?string
  798.     {
  799.         return $this->horaireDOuverture;
  800.     }
  801.     public function setHoraireDOuverture(?string $horaireDOuverture): self
  802.     {
  803.         $this->horaireDOuverture $horaireDOuverture;
  804.         return $this;
  805.     }
  806.    
  807.     public function getAdresseGPSLat(): ?float
  808.     {
  809.         return $this->adresseGPSLat;
  810.     }
  811.     public function setAdresseGPSLat(?float $adresseGPSLat): self
  812.     {
  813.         $this->adresseGPSLat $adresseGPSLat;
  814.         return $this;
  815.     }
  816.     public function getAdresseGPSLong(): ?float
  817.     {
  818.         return $this->adresseGPSLong;
  819.     }
  820.     public function setAdresseGPSLong(?float $adresseGPSLong): self
  821.     {
  822.         $this->adresseGPSLong $adresseGPSLong;
  823.         return $this;
  824.     }
  825.     public function getAdresse3Words(): ?string
  826.     {
  827.         return $this->adresse3Words;
  828.     }
  829.     public function setAdresse3Words(?string $adresse3Words): self
  830.     {
  831.         $this->adresse3Words $adresse3Words;
  832.         return $this;
  833.     }
  834.     public function getLatitude(): ?string
  835.     {
  836.         return $this->latitude;
  837.     }
  838.     public function setLatitude(?string $latitude): self
  839.     {
  840.         $this->latitude $latitude;
  841.         return $this;
  842.     }
  843.     public function getLongitude(): ?string
  844.     {
  845.         return $this->longitude;
  846.     }
  847.     public function setLongitude(?string $longitude): self
  848.     {
  849.         $this->longitude $longitude;
  850.         return $this;
  851.     }
  852.     public function getDatePremium(): ?\DateTimeInterface
  853.     {
  854.         return $this->datePremium;
  855.     }
  856.     public function setDatePremium(?\DateTimeInterface $datePremium): self
  857.     {
  858.         $this->datePremium $datePremium;
  859.         return $this;
  860.     }
  861.     public function getUser(): ?AppUser
  862.     {
  863.         return $this->user;
  864.     }
  865.     public function setUser(?AppUser $user): self
  866.     {
  867.         $this->user $user;
  868.         return $this;
  869.     }
  870.     public function getEstBloque(): ?bool
  871.     {
  872.         return $this->estBloque;
  873.     }
  874.     public function setEstBloque(?bool $estBloque): self
  875.     {
  876.         $this->estBloque $estBloque;
  877.         return $this;
  878.     }
  879.     
  880.     /**
  881.      @ORM\PrePersist
  882.     */
  883.     
  884.     public function AugmenterNombreElementParent()
  885.                                                                       {
  886.                                                                           if($this->getCategorieEntreprise() != null){
  887.                                                                               $nb $this->getCategorieEntreprise()->getNombreElement();
  888.                                                                               $this->getCategorieEntreprise()->setNombreElement($nb+1);
  889.                                                                           }
  890.                                                                       }
  891.     
  892.     /**
  893.      @ORM\PreRemove
  894.     */
  895.     
  896.     public function diminuerNombreElementParent()
  897.                                                                       {
  898.                                                                           if($this->getCategorieEntreprise() != null){
  899.                                                                               $nb $this->getCategorieEntreprise()->getNombreElement();
  900.                                                                               $this->getCategorieEntreprise()->setNombreElement($nb-1);
  901.                                                                           }
  902.                                                                       }
  903.     public function isEstPro(): ?bool
  904.     {
  905.         return $this->estPro;
  906.     }
  907.     public function isEstBloque(): ?bool
  908.     {
  909.         return $this->estBloque;
  910.     }
  911.     public function isEstCertifie(): ?bool
  912.     {
  913.         return $this->estCertifie;
  914.     }
  915.     public function isFactureTVA(): ?bool
  916.     {
  917.         return $this->factureTVA;
  918.     }
  919.     public function getQualification(): ?string
  920.     {
  921.         return $this->qualification;
  922.     }
  923.     public function setQualification(?string $qualification): self
  924.     {
  925.         $this->qualification $qualification;
  926.         return $this;
  927.     }
  928.     public function getDisponibilite(): ?string
  929.     {
  930.         return $this->disponibilite;
  931.     }
  932.     public function setDisponibilite(?string $disponibilite): self
  933.     {
  934.         $this->disponibilite $disponibilite;
  935.         return $this;
  936.     }
  937.     public function getGammeDePrix(): ?string
  938.     {
  939.         return $this->gammeDePrix;
  940.     }
  941.     public function setGammeDePrix(?string $gammeDePrix): self
  942.     {
  943.         $this->gammeDePrix $gammeDePrix;
  944.         return $this;
  945.     }
  946.     public function getMainDOeuvre(): ?string
  947.     {
  948.         return $this->mainDOeuvre;
  949.     }
  950.     public function setMainDOeuvre(?string $mainDOeuvre): self
  951.     {
  952.         $this->mainDOeuvre $mainDOeuvre;
  953.         return $this;
  954.     }
  955.     public function getZoneDIntervention(): ?string
  956.     {
  957.         return $this->zoneDIntervention;
  958.     }
  959.     public function setZoneDIntervention(?string $zoneDIntervention): self
  960.     {
  961.         $this->zoneDIntervention $zoneDIntervention;
  962.         return $this;
  963.     }
  964.     public function isEstSupprime(): ?bool
  965.     {
  966.         return $this->estSupprime;
  967.     }
  968.     public function setEstSupprime(?bool $estSupprime): self
  969.     {
  970.         $this->estSupprime $estSupprime;
  971.         return $this;
  972.     }
  973.     public function getPushNotificationToken(): ?string
  974.     {
  975.         return $this->pushNotificationToken;
  976.     }
  977.     public function setPushNotificationToken(?string $pushNotificationToken): self
  978.     {
  979.         $this->pushNotificationToken $pushNotificationToken;
  980.         return $this;
  981.     }
  982.     public function getTelephone(): ?string
  983.     {
  984.         return $this->telephone;
  985.     }
  986.     public function setTelephone(?string $telephone): self
  987.     {
  988.         $this->telephone $telephone;
  989.         return $this;
  990.     }
  991.     public function getSolde(): ?float
  992.     {
  993.         return $this->solde;
  994.     }
  995.     public function setSolde(?float $solde): self
  996.     {
  997.         $this->solde $solde;
  998.         return $this;
  999.     }
  1000.    
  1001. }