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(length255)]
  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.     
  131.     public function __construct()
  132.     {
  133.         $this->gestionnaires = new ArrayCollection();
  134.     }
  135.     public function getId(): ?int
  136.     {
  137.         return $this->id;
  138.     }
  139.     public function getAdresse(): ?string
  140.     {
  141.         return $this->adresse;
  142.     }
  143.     public function setAdresse(string $adresse): self
  144.     {
  145.         $this->adresse $adresse;
  146.         return $this;
  147.     }
  148.     public function getSiren(): ?string
  149.     {
  150.         return $this->siren;
  151.     }
  152.     public function setSiren(string $siren): self
  153.     {
  154.         $this->siren $siren;
  155.         return $this;
  156.     }
  157.     public function getApe(): ?string
  158.     {
  159.         return $this->ape;
  160.     }
  161.     public function setApe(string $ape): self
  162.     {
  163.         $this->ape $ape;
  164.         return $this;
  165.     }
  166.     public function getTaille(): ?string
  167.     {
  168.         return $this->taille;
  169.     }
  170.     public function setTaille(string $taille): self
  171.     {
  172.         $this->taille $taille;
  173.         return $this;
  174.     }
  175.     public function getEtat(): ?Etat
  176.     {
  177.         return $this->etat;
  178.     }
  179.     public function setEtat(?Etat $etat): static
  180.     {
  181.         $this->etat $etat;
  182.         return $this;
  183.     }
  184.    
  185.     public function getGestionnaireEntreprise(): ?GestionnaireEntreprise
  186.     {
  187.         return $this->gestionnaire_entreprise;
  188.     }
  189.     public function setGestionnaireEntreprise(?GestionnaireEntreprise $gestionnaire_entreprise): static
  190.     {
  191.         $this->gestionnaire_entreprise $gestionnaire_entreprise;
  192.         return $this;
  193.     }
  194.     public function getNiveau(): ?Niveau
  195.     {
  196.         return $this->niveau;
  197.     }
  198.     public function setNiveau(?Niveau $niveau): self
  199.     {
  200.         $this->niveau $niveau;
  201.         return $this;
  202.     }
  203.     public function getNomEntreprise(): ?string
  204.     {
  205.         return $this->nom_entreprise;
  206.     }
  207.     public function setNomEntreprise(string $nom_entreprise): self
  208.     {
  209.         $this->nom_entreprise $nom_entreprise;
  210.         return $this;
  211.     }
  212.     public function getDir(): ?string
  213.     {
  214.         return $this->dir;
  215.     }
  216.     public function setDir(string $dir): self
  217.     {
  218.         $this->dir $dir;
  219.         return $this;
  220.     }
  221.     public function getImage(): ?string
  222.     {
  223.         return $this->image;
  224.     }
  225.     public function setImage(?string $image): self
  226.     {
  227.         $this->image $image;
  228.         return $this;
  229.     }
  230.     public function getDescription(): ?string
  231.     {
  232.         return $this->description;
  233.     }
  234.     public function setDescription(?string $description): self
  235.     {
  236.         $this->description $description;
  237.         return $this;
  238.     }
  239.     public function getDateCreationCompte(): ?\DateTimeInterface
  240.     {
  241.         return $this->date_creation_compte;
  242.     }
  243.     public function setDateCreationCompte(?\DateTimeInterface $date_creation): static
  244.     {
  245.         $this->date_creation_compte $date_creation;
  246.         return $this;
  247.     }
  248.     public function getDateUpdate(): ?\DateTimeInterface
  249.     {
  250.         return $this->date_update;
  251.     }
  252.     public function setDateUpdate(?\DateTimeInterface $date_update): static
  253.     {
  254.         $this->date_update $date_update;
  255.         return $this;
  256.     }
  257.     public function getCodePostal(): ?string
  258.     {
  259.         return $this->code_postal;
  260.     }
  261.     public function setCodePostal(?string $code_postal): static
  262.     {
  263.         $this->code_postal $code_postal;
  264.         return $this;
  265.     }
  266.     public function getNumVoie(): ?string
  267.     {
  268.         return $this->num_voie;
  269.     }
  270.     public function setNumVoie(?string $num_voie): static
  271.     {
  272.         $this->num_voie $num_voie;
  273.         return $this;
  274.     }
  275.     public function getTypeVoie(): ?string
  276.     {
  277.         return $this->type_voie;
  278.     }
  279.     public function setTypeVoie(?string $type_voie): static
  280.     {
  281.         $this->type_voie $type_voie;
  282.         return $this;
  283.     }
  284.     public function getNomVoie(): ?string
  285.     {
  286.         return $this->nom_voie;
  287.     }
  288.     public function setNomVoie(?string $nom_voie): static
  289.     {
  290.         $this->nom_voie $nom_voie;
  291.         return $this;
  292.     }
  293.     public function getDepartement(): ?Departement
  294.     {
  295.         return $this->departement;
  296.     }
  297.     public function setDepartement(?Departement $departement): static
  298.     {
  299.         $this->departement $departement;
  300.         return $this;
  301.     }
  302.     public function getPays(): ?Pays
  303.     {
  304.         return $this->Pays;
  305.     }
  306.     public function setPays(?Pays $Pays): static
  307.     {
  308.         $this->Pays $Pays;
  309.         return $this;
  310.     }
  311.     public function getVille(): ?string
  312.     {
  313.         return $this->ville;
  314.     }
  315.     public function setVille(string $ville): self
  316.     {
  317.         $this->ville $ville;
  318.         return $this;
  319.     }
  320.     public function getAccordConsultation(): ?bool
  321.     {
  322.         return $this->accordConsultation;
  323.     }
  324.     public function setAccordConsultation(bool $accordConsultation): self
  325.     {
  326.         $this->accordConsultation $accordConsultation;
  327.         return $this;
  328.     }
  329.  
  330.     public function getDocumentApres(): ?bool
  331.     {
  332.         return $this->documentApres;
  333.     }
  334.     public function setDocumentApres(bool $documentApres): self
  335.     {
  336.         $this->documentApres $documentApres;
  337.         return $this;
  338.     }
  339.     public function getCodePaysDep(): ?string
  340.     {
  341.         return $this->code_pays_dep;
  342.     }
  343.     public function setCodePaysDep(?string $code_pays_dep): static
  344.     {
  345.         $this->code_pays_dep $code_pays_dep;
  346.         return $this;
  347.     }
  348.     public function getFormule(): ?Formules
  349.     {
  350.         return $this->formule;
  351.     }
  352.     public function setFormule(?Formules $formule): static
  353.     {
  354.         $this->formule $formule;
  355.         return $this;
  356.     }
  357.     public function getPrixFormuleTtc(): ?string
  358.     {
  359.         return $this->prix_formule_ttc;
  360.     }
  361.     public function setPrixFormuleTtc(?string $prix_formule_ttc): static
  362.     {
  363.         $this->prix_formule_ttc $prix_formule_ttc;
  364.         return $this;
  365.     }
  366.     public function getPrixFormuleHt(): ?string
  367.     {
  368.         return $this->prix_formule_ht;
  369.     }
  370.     public function setPrixFormuleHt(?string $prix_formule_ht): static
  371.     {
  372.         $this->prix_formule_ht $prix_formule_ht;
  373.         return $this;
  374.     }
  375.     public function getTvaFormule(): ?string
  376.     {
  377.         return $this->tva_formule;
  378.     }
  379.     public function setTvaFormule(?string $tva_formule): static
  380.     {
  381.         $this->tva_formule $tva_formule;
  382.         return $this;
  383.     }
  384.     public function getTelephone(): ?string
  385.     {
  386.         return $this->telephone;
  387.     }
  388.     public function setTelephone(?string $telephone): static
  389.     {
  390.         $this->telephone $telephone;
  391.         return $this;
  392.     }
  393.     public function getDateCreationEntreprise(): ?\DateTimeInterface
  394.     {
  395.         return $this->date_creation_entreprise;
  396.     }
  397.     public function setDateCreationEntreprise(?\DateTimeInterface $date_creation_entreprise): static
  398.     {
  399.         $this->date_creation_entreprise $date_creation_entreprise;
  400.         return $this;
  401.     }
  402.     public function getPortable(): ?string
  403.     {
  404.         return $this->portable;
  405.     }
  406.     public function setPortable(?string $portable): static
  407.     {
  408.         $this->portable $portable;
  409.         return $this;
  410.     }
  411.     public function getSite(): ?string
  412.     {
  413.         return $this->site;
  414.     }
  415.     public function setSite(?string $site): static
  416.     {
  417.         $this->site $site;
  418.         return $this;
  419.     }
  420.     public function getServices(): ?array
  421.     {
  422.         return $this->services;
  423.     }
  424.     public function setServices(?array $services): static
  425.     {
  426.         $this->services $services;
  427.         return $this;
  428.     }
  429.     public function getMoyensCommunication(): ?array
  430.     {
  431.         return $this->moyens_communication;
  432.     }
  433.     public function setMoyensCommunication(?array $moyens_communication): static
  434.     {
  435.         $this->moyens_communication $moyens_communication;
  436.         return $this;
  437.     }
  438.     public function getSocialLinks(): ?array
  439.     {
  440.         return $this->social_links;
  441.     }
  442.     public function setSocialLinks(?array $social_links): static
  443.     {
  444.         $this->social_links $social_links;
  445.         return $this;
  446.     }
  447.     public function getEmail(): ?string
  448.     {
  449.         return $this->email;
  450.     }
  451.     public function setEmail(?string $email): static
  452.     {
  453.         $this->email $email;
  454.         return $this;
  455.     }
  456.     public function getDernierUpdateDepartement(): ?\DateTimeInterface
  457.     {
  458.         return $this->dernier_update_departement;
  459.     }
  460.     public function setDernierUpdateDepartement(?\DateTimeInterface $dernier_update_departement): static
  461.     {
  462.         $this->dernier_update_departement $dernier_update_departement;
  463.         return $this;
  464.     }
  465.     public function getSearchAgentLimitToTop(): ?bool
  466.     {
  467.         return $this->searchAgentLimitToTop;
  468.     }
  469.     public function setSearchAgentLimitToTop(bool $searchAgentLimitToTop): self
  470.     {
  471.         $this->searchAgentLimitToTop $searchAgentLimitToTop;
  472.         return $this;
  473.     }
  474.     public function getAgentRequireEmail(): ?bool
  475.     {
  476.         return $this->agentRequireEmail;
  477.     }
  478.     public function setAgentRequireEmail(bool $agentRequireEmail): self
  479.     {
  480.         $this->agentRequireEmail $agentRequireEmail;
  481.         return $this;
  482.     }
  483.     public function getAgentUniqueEmail(): ?bool
  484.     {
  485.         return $this->agentUniqueEmail;
  486.     }
  487.     public function setAgentUniqueEmail(bool $agentUniqueEmail): self
  488.     {
  489.         $this->agentUniqueEmail $agentUniqueEmail;
  490.         return $this;
  491.     }
  492.     public function getEntrepriseRacine(): ?Entreprise
  493.     {
  494.         return $this->entrepriseRacine;
  495.     }
  496.     public function setEntrepriseRacine(?Entreprise $entrepriseRacine): static
  497.     {
  498.         $this->entrepriseRacine $entrepriseRacine;
  499.         return $this;
  500.     }
  501.     public function getEntrepriseParent(): ?Entreprise
  502.     {
  503.         return $this->entrepriseParent;
  504.     }
  505.     public function setEntrepriseParent(?Entreprise $entrepriseParent): static
  506.     {
  507.         $this->entrepriseParent $entrepriseParent;
  508.         return $this;
  509.     }
  510.     public function getLangues(): ?array
  511.     {
  512.         return $this->langues;
  513.     }
  514.     public function setLangues(?array $langues): static
  515.     {
  516.         $this->langues $langues;
  517.         return $this;
  518.     }
  519.     public function getGeo(): ?string
  520.     {
  521.         return $this->geo;
  522.     }
  523.     public function setGeo(?string $geo): static
  524.     {
  525.         $this->geo $geo;
  526.         return $this;
  527.     }
  528.     public function getUrlEvents(): ?string
  529.     {
  530.         return $this->url_events;
  531.     }
  532.     public function setUrlEvents(?string $url_events): static
  533.     {
  534.         $this->url_events $url_events;
  535.         return $this;
  536.     }
  537.     public function getDescriptionEvents(): ?string
  538.     {
  539.         return $this->description_events;
  540.     }
  541.     public function setDescriptionEvents(?string $description_events): static
  542.     {
  543.         $this->description_events $description_events;
  544.         return $this;
  545.     }
  546.     public function getRouteUrl(): ?string
  547.     {
  548.         return $this->route_url;
  549.     }
  550.     public function setRouteUrl(?string $route_url): static
  551.     {
  552.         $this->route_url $route_url;
  553.         return $this;
  554.     }
  555.     public function getDepExclu(): ?array
  556.     {
  557.         return $this->dep_exclu;
  558.     }
  559.     public function setDepExclu(?array $dep_exclu): static
  560.     {
  561.         $this->dep_exclu $dep_exclu;
  562.         return $this;
  563.     }
  564.     public function getNumeroTva(): ?string
  565.     {
  566.         return $this->numero_tva;
  567.     }
  568.     public function setNumeroTva(?string $numero_tva): static
  569.     {
  570.         $this->numero_tva $numero_tva;
  571.         return $this;
  572.     }
  573.     public function getTypeActivite(): ?string
  574.     {
  575.         return $this->type_activite;
  576.     }
  577.     public function setTypeActivite(?string $type_activite): static
  578.     {
  579.         $this->type_activite $type_activite;
  580.         return $this;
  581.     }
  582.     public function getTypeCompte(): ?TypeCompte
  583.     {
  584.         return $this->type_compte;
  585.     }
  586.     public function setTypeCompte(?TypeCompte $type_compte): static
  587.     {
  588.         $this->type_compte $type_compte;
  589.         return $this;
  590.     }
  591.     public function getCommunes(): ?Communes
  592.     {
  593.         return $this->communes;
  594.     }
  595.     public function setCommunes(?Communes $communes): static
  596.     {
  597.         $this->communes $communes;
  598.         return $this;
  599.     }
  600.     public function getAdresse2(): ?string
  601.     {
  602.         return $this->adresse2;
  603.     }
  604.     public function setAdresse2(?string $adresse2): static
  605.     {
  606.         $this->adresse2 $adresse2;
  607.         return $this;
  608.     }
  609.     public function getFormeJuridique(): ?string
  610.     {
  611.         return $this->forme_juridique;
  612.     }
  613.     public function setFormeJuridique(?string $forme_juridique): static
  614.     {
  615.         $this->forme_juridique $forme_juridique;
  616.         return $this;
  617.     }
  618.     public function getRefApe(): ?Ape
  619.     {
  620.         return $this->ref_ape;
  621.     }
  622.     public function setRefApe(?Ape $ref_ape): static
  623.     {
  624.         $this->ref_ape $ref_ape;
  625.         return $this;
  626.     }
  627.     public function getTypeActiviteDe(): ?string
  628.     {
  629.         return $this->type_activite_de;
  630.     }
  631.     public function setTypeActiviteDe(?string $type_activite_de): static
  632.     {
  633.         $this->type_activite_de $type_activite_de;
  634.         return $this;
  635.     }
  636.     public function getTypeActiviteEn(): ?string
  637.     {
  638.         return $this->type_activite_en;
  639.     }
  640.     public function setTypeActiviteEn(?string $type_activite_en): static
  641.     {
  642.         $this->type_activite_en $type_activite_en;
  643.         return $this;
  644.     }
  645.     public function getCodeAbreviation(): ?string
  646.     {
  647.         return $this->code_abreviation;
  648.     }
  649.     public function setCodeAbreviation(?string $code_abreviation): static
  650.     {
  651.         $this->code_abreviation $code_abreviation;
  652.         return $this;
  653.     }
  654.     public function getRegion(): ?Region
  655.     {
  656.         return $this->region;
  657.     }
  658.     public function setRegion(?Region $region): static
  659.     {
  660.         $this->region $region;
  661.         return $this;
  662.     }
  663. }
  664.