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