src/Entity/Entreprise.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EntrepriseRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Doctrine\Common\Collections\ArrayCollection;
  7. #[ORM\Entity(repositoryClassEntrepriseRepository::class)]
  8. class Entreprise
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private int $id;
  14.     #[ORM\Column(type'string'length255)]
  15.     private string $adresse;
  16.     #[ORM\Column(type'string'length255)]
  17.     private string $siren;
  18.     #[ORM\Column(type'string'length255)]
  19.     private string $ape;
  20.     #[ORM\Column(type'string'length255)]
  21.     private string $taille;
  22.     #[ORM\ManyToOne]
  23.     private ?Departement $departement null;
  24.     #[ORM\ManyToOne]
  25.     private ?Etat $etat null;
  26.     #[ORM\Column(type'string'length255)]
  27.     private string $nom_entreprise;
  28.     #[ORM\Column(type'string'length255nullabletrue)]
  29.     private string $dir;
  30.     #[ORM\Column(type'string'length255nullabletrue)]
  31.     private ?string $image;
  32.     #[ORM\Column(type'text'nullabletrue)]
  33.     private ?string $description;
  34.     #[ORM\ManyToOne]
  35.     private ?Niveau $niveau;
  36.     #[ORM\ManyToOne]
  37.     private ?GestionnaireEntreprise $gestionnaire_entreprise null;
  38.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  39.     private ?\DateTimeInterface $date_creation_compte null;
  40.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  41.     private ?\DateTimeInterface $date_update null;
  42.     #[ORM\Column(length255nullabletrue)]
  43.     private ?string $code_postal null;
  44.     #[ORM\Column(length255nullabletrue)]
  45.     private ?string $num_voie null;
  46.     #[ORM\Column(length255nullabletrue)]
  47.     private ?string $type_voie null;
  48.     #[ORM\Column(length255nullabletrue)]
  49.     private ?string $nom_voie null;
  50.     #[ORM\ManyToOne]
  51.     private ?Pays $Pays null;
  52.     #[ORM\Column(length255nullabletrue)]
  53.     private $ville;
  54.     #[ORM\Column(type'boolean'nullabletrueoptions: ["default" => false])]
  55.     private bool $accordConsultation;
  56.     #[ORM\Column(type'boolean'nullabletrueoptions: ["default" => false])]
  57.     private bool $documentApres;
  58.     #[ORM\Column(length255nullabletrue)]
  59.     private ?string $code_pays_dep null;
  60.     #[ORM\ManyToOne]
  61.     private ?Formules $formule null;
  62.     #[ORM\Column(length255nullabletrue)]
  63.     private ?string $prix_formule_ttc null;
  64.     #[ORM\Column(length255nullabletrue)]
  65.     private ?string $prix_formule_ht null;
  66.     #[ORM\Column(length255nullabletrue)]
  67.     private ?string $tva_formule null;
  68.     #[ORM\Column(length255nullabletrue)]
  69.     private ?string $telephone null;
  70.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  71.     private ?\DateTimeInterface $date_creation_entreprise null;
  72.     #[ORM\Column(length255nullabletrue)]
  73.     private ?string $portable null;
  74.     #[ORM\Column(length255nullabletrue)]
  75.     private ?string $site null;
  76.     #[ORM\Column(typeTypes::ARRAY, nullabletrue)]
  77.     private ?array $services null;
  78.     #[ORM\Column(typeTypes::ARRAY, nullabletrue)]
  79.     private ?array $moyens_communication null;
  80.     #[ORM\Column(typeTypes::ARRAY, nullabletrue)]
  81.     private ?array $social_links null;
  82.     #[ORM\Column(length255nullabletrue)]
  83.     private ?string $email null;
  84.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  85.     private ?\DateTimeInterface $dernier_update_departement null;
  86.     #[ORM\Column(type'boolean'nullabletrueoptions: ["default" => false])]
  87.     private bool $agentRequireEmail;
  88.     #[ORM\Column(type'boolean'nullabletrueoptions: ["default" => false])]
  89.     private bool $agentUniqueEmail;
  90.     #[ORM\Column(type'boolean'nullabletrueoptions: ["default" => false])]
  91.     private bool $searchAgentLimitToTop;
  92.     #[ORM\ManyToOne]
  93.     private ?Entreprise $entrepriseRacine null;
  94.     #[ORM\ManyToOne]
  95.     private ?Entreprise $entrepriseParent null;
  96.     #[ORM\Column(typeTypes::ARRAY, nullabletrue)]
  97.     private ?array $langues null;
  98.     #[ORM\Column(length255nullabletrue)]
  99.     private ?string $geo null;
  100.     #[ORM\Column(length255nullabletrue)]
  101.     private ?string $url_events null;
  102.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  103.     private ?string $description_events null;
  104.     #[ORM\Column(length255nullabletrue)]
  105.     private ?string $route_url null;
  106.     #[ORM\Column(typeTypes::ARRAY, nullabletrue)]
  107.     private ?array $dep_exclu null;
  108.     #[ORM\Column(length255nullabletrue)]
  109.     private ?string $numero_tva null;
  110.     #[ORM\Column(length255nullabletrue)]
  111.     private ?string $type_activite null;
  112.     #[ORM\ManyToOne]
  113.     private ?TypeCompte $type_compte null;
  114.     #[ORM\ManyToOne]
  115.     private ?Communes $communes null;
  116.     #[ORM\Column(length255nullabletrue)]
  117.     private ?string $adresse2 null;
  118.     #[ORM\Column(length255nullabletrue)]
  119.     private ?string $forme_juridique null;
  120.     #[ORM\ManyToOne]
  121.     private ?Ape $ref_ape null;
  122.     #[ORM\Column(length255nullabletrue)]
  123.     private ?string $type_activite_de null;
  124.     #[ORM\Column(length255nullabletrue)]
  125.     private ?string $type_activite_en null;
  126.     #[ORM\Column(length255nullabletrue)]
  127.     private ?string $code_abreviation null;
  128.     #[ORM\ManyToOne]
  129.     private ?Region $region null;
  130.     #[ORM\Column(length255nullabletrue)]
  131.     private ?string $num_unique null;
  132.     
  133.     public function __construct()
  134.     {
  135.         $this->gestionnaires = new ArrayCollection();
  136.     }
  137.     public function getId(): ?int
  138.     {
  139.         return $this->id;
  140.     }
  141.     public function getAdresse(): ?string
  142.     {
  143.         return $this->adresse;
  144.     }
  145.     public function setAdresse(string $adresse): self
  146.     {
  147.         $this->adresse $adresse;
  148.         return $this;
  149.     }
  150.     public function getSiren(): ?string
  151.     {
  152.         return $this->siren;
  153.     }
  154.     public function setSiren(string $siren): self
  155.     {
  156.         $this->siren $siren;
  157.         return $this;
  158.     }
  159.     public function getApe(): ?string
  160.     {
  161.         return $this->ape;
  162.     }
  163.     public function setApe(string $ape): self
  164.     {
  165.         $this->ape $ape;
  166.         return $this;
  167.     }
  168.     public function getTaille(): ?string
  169.     {
  170.         return $this->taille;
  171.     }
  172.     public function setTaille(string $taille): self
  173.     {
  174.         $this->taille $taille;
  175.         return $this;
  176.     }
  177.     public function getEtat(): ?Etat
  178.     {
  179.         return $this->etat;
  180.     }
  181.     public function setEtat(?Etat $etat): static
  182.     {
  183.         $this->etat $etat;
  184.         return $this;
  185.     }
  186.    
  187.     public function getGestionnaireEntreprise(): ?GestionnaireEntreprise
  188.     {
  189.         return $this->gestionnaire_entreprise;
  190.     }
  191.     public function setGestionnaireEntreprise(?GestionnaireEntreprise $gestionnaire_entreprise): static
  192.     {
  193.         $this->gestionnaire_entreprise $gestionnaire_entreprise;
  194.         return $this;
  195.     }
  196.     public function getNiveau(): ?Niveau
  197.     {
  198.         return $this->niveau;
  199.     }
  200.     public function setNiveau(?Niveau $niveau): self
  201.     {
  202.         $this->niveau $niveau;
  203.         return $this;
  204.     }
  205.     public function getNomEntreprise(): ?string
  206.     {
  207.         return $this->nom_entreprise;
  208.     }
  209.     public function setNomEntreprise(string $nom_entreprise): self
  210.     {
  211.         $this->nom_entreprise $nom_entreprise;
  212.         return $this;
  213.     }
  214.     public function getDir(): ?string
  215.     {
  216.         return $this->dir;
  217.     }
  218.     public function setDir(string $dir): self
  219.     {
  220.         $this->dir $dir;
  221.         return $this;
  222.     }
  223.     public function getImage(): ?string
  224.     {
  225.         return $this->image;
  226.     }
  227.     public function setImage(?string $image): self
  228.     {
  229.         $this->image $image;
  230.         return $this;
  231.     }
  232.     public function getDescription(): ?string
  233.     {
  234.         return $this->description;
  235.     }
  236.     public function setDescription(?string $description): self
  237.     {
  238.         $this->description $description;
  239.         return $this;
  240.     }
  241.     public function getDateCreationCompte(): ?\DateTimeInterface
  242.     {
  243.         return $this->date_creation_compte;
  244.     }
  245.     public function setDateCreationCompte(?\DateTimeInterface $date_creation): static
  246.     {
  247.         $this->date_creation_compte $date_creation;
  248.         return $this;
  249.     }
  250.     public function getDateUpdate(): ?\DateTimeInterface
  251.     {
  252.         return $this->date_update;
  253.     }
  254.     public function setDateUpdate(?\DateTimeInterface $date_update): static
  255.     {
  256.         $this->date_update $date_update;
  257.         return $this;
  258.     }
  259.     public function getCodePostal(): ?string
  260.     {
  261.         return $this->code_postal;
  262.     }
  263.     public function setCodePostal(?string $code_postal): static
  264.     {
  265.         $this->code_postal $code_postal;
  266.         return $this;
  267.     }
  268.     public function getNumVoie(): ?string
  269.     {
  270.         return $this->num_voie;
  271.     }
  272.     public function setNumVoie(?string $num_voie): static
  273.     {
  274.         $this->num_voie $num_voie;
  275.         return $this;
  276.     }
  277.     public function getTypeVoie(): ?string
  278.     {
  279.         return $this->type_voie;
  280.     }
  281.     public function setTypeVoie(?string $type_voie): static
  282.     {
  283.         $this->type_voie $type_voie;
  284.         return $this;
  285.     }
  286.     public function getNomVoie(): ?string
  287.     {
  288.         return $this->nom_voie;
  289.     }
  290.     public function setNomVoie(?string $nom_voie): static
  291.     {
  292.         $this->nom_voie $nom_voie;
  293.         return $this;
  294.     }
  295.     public function getDepartement(): ?Departement
  296.     {
  297.         return $this->departement;
  298.     }
  299.     public function setDepartement(?Departement $departement): static
  300.     {
  301.         $this->departement $departement;
  302.         return $this;
  303.     }
  304.     public function getPays(): ?Pays
  305.     {
  306.         return $this->Pays;
  307.     }
  308.     public function setPays(?Pays $Pays): static
  309.     {
  310.         $this->Pays $Pays;
  311.         return $this;
  312.     }
  313.     public function getVille(): ?string
  314.     {
  315.         return $this->ville;
  316.     }
  317.     public function setVille(string $ville): self
  318.     {
  319.         $this->ville $ville;
  320.         return $this;
  321.     }
  322.     public function getAccordConsultation(): ?bool
  323.     {
  324.         return $this->accordConsultation;
  325.     }
  326.     public function setAccordConsultation(bool $accordConsultation): self
  327.     {
  328.         $this->accordConsultation $accordConsultation;
  329.         return $this;
  330.     }
  331.  
  332.     public function getDocumentApres(): ?bool
  333.     {
  334.         return $this->documentApres;
  335.     }
  336.     public function setDocumentApres(bool $documentApres): self
  337.     {
  338.         $this->documentApres $documentApres;
  339.         return $this;
  340.     }
  341.     public function getCodePaysDep(): ?string
  342.     {
  343.         return $this->code_pays_dep;
  344.     }
  345.     public function setCodePaysDep(?string $code_pays_dep): static
  346.     {
  347.         $this->code_pays_dep $code_pays_dep;
  348.         return $this;
  349.     }
  350.     public function getFormule(): ?Formules
  351.     {
  352.         return $this->formule;
  353.     }
  354.     public function setFormule(?Formules $formule): static
  355.     {
  356.         $this->formule $formule;
  357.         return $this;
  358.     }
  359.     public function getPrixFormuleTtc(): ?string
  360.     {
  361.         return $this->prix_formule_ttc;
  362.     }
  363.     public function setPrixFormuleTtc(?string $prix_formule_ttc): static
  364.     {
  365.         $this->prix_formule_ttc $prix_formule_ttc;
  366.         return $this;
  367.     }
  368.     public function getPrixFormuleHt(): ?string
  369.     {
  370.         return $this->prix_formule_ht;
  371.     }
  372.     public function setPrixFormuleHt(?string $prix_formule_ht): static
  373.     {
  374.         $this->prix_formule_ht $prix_formule_ht;
  375.         return $this;
  376.     }
  377.     public function getTvaFormule(): ?string
  378.     {
  379.         return $this->tva_formule;
  380.     }
  381.     public function setTvaFormule(?string $tva_formule): static
  382.     {
  383.         $this->tva_formule $tva_formule;
  384.         return $this;
  385.     }
  386.     public function getTelephone(): ?string
  387.     {
  388.         return $this->telephone;
  389.     }
  390.     public function setTelephone(?string $telephone): static
  391.     {
  392.         $this->telephone $telephone;
  393.         return $this;
  394.     }
  395.     public function getDateCreationEntreprise(): ?\DateTimeInterface
  396.     {
  397.         return $this->date_creation_entreprise;
  398.     }
  399.     public function setDateCreationEntreprise(?\DateTimeInterface $date_creation_entreprise): static
  400.     {
  401.         $this->date_creation_entreprise $date_creation_entreprise;
  402.         return $this;
  403.     }
  404.     public function getPortable(): ?string
  405.     {
  406.         return $this->portable;
  407.     }
  408.     public function setPortable(?string $portable): static
  409.     {
  410.         $this->portable $portable;
  411.         return $this;
  412.     }
  413.     public function getSite(): ?string
  414.     {
  415.         return $this->site;
  416.     }
  417.     public function setSite(?string $site): static
  418.     {
  419.         $this->site $site;
  420.         return $this;
  421.     }
  422.     public function getServices(): ?array
  423.     {
  424.         return $this->services;
  425.     }
  426.     public function setServices(?array $services): static
  427.     {
  428.         $this->services $services;
  429.         return $this;
  430.     }
  431.     public function getMoyensCommunication(): ?array
  432.     {
  433.         return $this->moyens_communication;
  434.     }
  435.     public function setMoyensCommunication(?array $moyens_communication): static
  436.     {
  437.         $this->moyens_communication $moyens_communication;
  438.         return $this;
  439.     }
  440.     public function getSocialLinks(): ?array
  441.     {
  442.         return $this->social_links;
  443.     }
  444.     public function setSocialLinks(?array $social_links): static
  445.     {
  446.         $this->social_links $social_links;
  447.         return $this;
  448.     }
  449.     public function getEmail(): ?string
  450.     {
  451.         return $this->email;
  452.     }
  453.     public function setEmail(?string $email): static
  454.     {
  455.         $this->email $email;
  456.         return $this;
  457.     }
  458.     public function getDernierUpdateDepartement(): ?\DateTimeInterface
  459.     {
  460.         return $this->dernier_update_departement;
  461.     }
  462.     public function setDernierUpdateDepartement(?\DateTimeInterface $dernier_update_departement): static
  463.     {
  464.         $this->dernier_update_departement $dernier_update_departement;
  465.         return $this;
  466.     }
  467.     public function getSearchAgentLimitToTop(): ?bool
  468.     {
  469.         return $this->searchAgentLimitToTop;
  470.     }
  471.     public function setSearchAgentLimitToTop(bool $searchAgentLimitToTop): self
  472.     {
  473.         $this->searchAgentLimitToTop $searchAgentLimitToTop;
  474.         return $this;
  475.     }
  476.     public function getAgentRequireEmail(): ?bool
  477.     {
  478.         return $this->agentRequireEmail;
  479.     }
  480.     public function setAgentRequireEmail(bool $agentRequireEmail): self
  481.     {
  482.         $this->agentRequireEmail $agentRequireEmail;
  483.         return $this;
  484.     }
  485.     public function getAgentUniqueEmail(): ?bool
  486.     {
  487.         return $this->agentUniqueEmail;
  488.     }
  489.     public function setAgentUniqueEmail(bool $agentUniqueEmail): self
  490.     {
  491.         $this->agentUniqueEmail $agentUniqueEmail;
  492.         return $this;
  493.     }
  494.     public function getEntrepriseRacine(): ?Entreprise
  495.     {
  496.         return $this->entrepriseRacine;
  497.     }
  498.     public function setEntrepriseRacine(?Entreprise $entrepriseRacine): static
  499.     {
  500.         $this->entrepriseRacine $entrepriseRacine;
  501.         return $this;
  502.     }
  503.     public function getEntrepriseParent(): ?Entreprise
  504.     {
  505.         return $this->entrepriseParent;
  506.     }
  507.     public function setEntrepriseParent(?Entreprise $entrepriseParent): static
  508.     {
  509.         $this->entrepriseParent $entrepriseParent;
  510.         return $this;
  511.     }
  512.     public function getLangues(): ?array
  513.     {
  514.         return $this->langues;
  515.     }
  516.     public function setLangues(?array $langues): static
  517.     {
  518.         $this->langues $langues;
  519.         return $this;
  520.     }
  521.     public function getGeo(): ?string
  522.     {
  523.         return $this->geo;
  524.     }
  525.     public function setGeo(?string $geo): static
  526.     {
  527.         $this->geo $geo;
  528.         return $this;
  529.     }
  530.     public function getUrlEvents(): ?string
  531.     {
  532.         return $this->url_events;
  533.     }
  534.     public function setUrlEvents(?string $url_events): static
  535.     {
  536.         $this->url_events $url_events;
  537.         return $this;
  538.     }
  539.     public function getDescriptionEvents(): ?string
  540.     {
  541.         return $this->description_events;
  542.     }
  543.     public function setDescriptionEvents(?string $description_events): static
  544.     {
  545.         $this->description_events $description_events;
  546.         return $this;
  547.     }
  548.     public function getRouteUrl(): ?string
  549.     {
  550.         return $this->route_url;
  551.     }
  552.     public function setRouteUrl(?string $route_url): static
  553.     {
  554.         $this->route_url $route_url;
  555.         return $this;
  556.     }
  557.     public function getDepExclu(): ?array
  558.     {
  559.         return $this->dep_exclu;
  560.     }
  561.     public function setDepExclu(?array $dep_exclu): static
  562.     {
  563.         $this->dep_exclu $dep_exclu;
  564.         return $this;
  565.     }
  566.     public function getNumeroTva(): ?string
  567.     {
  568.         return $this->numero_tva;
  569.     }
  570.     public function setNumeroTva(?string $numero_tva): static
  571.     {
  572.         $this->numero_tva $numero_tva;
  573.         return $this;
  574.     }
  575.     public function getTypeActivite(): ?string
  576.     {
  577.         return $this->type_activite;
  578.     }
  579.     public function setTypeActivite(?string $type_activite): static
  580.     {
  581.         $this->type_activite $type_activite;
  582.         return $this;
  583.     }
  584.     public function getTypeCompte(): ?TypeCompte
  585.     {
  586.         return $this->type_compte;
  587.     }
  588.     public function setTypeCompte(?TypeCompte $type_compte): static
  589.     {
  590.         $this->type_compte $type_compte;
  591.         return $this;
  592.     }
  593.     public function getCommunes(): ?Communes
  594.     {
  595.         return $this->communes;
  596.     }
  597.     public function setCommunes(?Communes $communes): static
  598.     {
  599.         $this->communes $communes;
  600.         return $this;
  601.     }
  602.     public function getAdresse2(): ?string
  603.     {
  604.         return $this->adresse2;
  605.     }
  606.     public function setAdresse2(?string $adresse2): static
  607.     {
  608.         $this->adresse2 $adresse2;
  609.         return $this;
  610.     }
  611.     public function getFormeJuridique(): ?string
  612.     {
  613.         return $this->forme_juridique;
  614.     }
  615.     public function setFormeJuridique(?string $forme_juridique): static
  616.     {
  617.         $this->forme_juridique $forme_juridique;
  618.         return $this;
  619.     }
  620.     public function getRefApe(): ?Ape
  621.     {
  622.         return $this->ref_ape;
  623.     }
  624.     public function setRefApe(?Ape $ref_ape): static
  625.     {
  626.         $this->ref_ape $ref_ape;
  627.         return $this;
  628.     }
  629.     public function getTypeActiviteDe(): ?string
  630.     {
  631.         return $this->type_activite_de;
  632.     }
  633.     public function setTypeActiviteDe(?string $type_activite_de): static
  634.     {
  635.         $this->type_activite_de $type_activite_de;
  636.         return $this;
  637.     }
  638.     public function getTypeActiviteEn(): ?string
  639.     {
  640.         return $this->type_activite_en;
  641.     }
  642.     public function setTypeActiviteEn(?string $type_activite_en): static
  643.     {
  644.         $this->type_activite_en $type_activite_en;
  645.         return $this;
  646.     }
  647.     public function getCodeAbreviation(): ?string
  648.     {
  649.         return $this->code_abreviation;
  650.     }
  651.     public function setCodeAbreviation(?string $code_abreviation): static
  652.     {
  653.         $this->code_abreviation $code_abreviation;
  654.         return $this;
  655.     }
  656.     public function getRegion(): ?Region
  657.     {
  658.         return $this->region;
  659.     }
  660.     public function setRegion(?Region $region): static
  661.     {
  662.         $this->region $region;
  663.         return $this;
  664.     }
  665.     public function getNumUnique(): ?string
  666.     {
  667.         return $this->num_unique;
  668.     }
  669.     public function setNumUnique(?string $num_unique): static
  670.     {
  671.         $this->num_unique $num_unique;
  672.         return $this;
  673.     }
  674. }
  675.