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