src/Entity/Entreprise.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EntrepriseRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassEntrepriseRepository::class)]
  9. #[ORM\Table(name'_admin_param_entreprise')]
  10. class Entreprise
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $denomination null;
  18.     #[ORM\OneToMany(mappedBy'entreprise'targetEntityEmploye::class)]
  19.     private Collection $employes;
  20.     #[ORM\Column(length255)]
  21.     private ?string $code null;
  22.     #[ORM\OneToMany(mappedBy'entreprise'targetEntityConfigApp::class)]
  23.     private Collection $configApps;
  24.     #[ORM\Column(length255nullabletrue)]
  25.     private ?string $Sigle null;
  26.     #[ORM\Column(length255nullabletrue)]
  27.     private ?string $Agrements null;
  28.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  29.     private ?string $situation_geo null;
  30.     #[ORM\Column(length255)]
  31.     private ?string $contacts null;
  32.     #[ORM\Column(length255nullabletrue)]
  33.     private ?string $adresse null;
  34.     #[ORM\Column(length255nullabletrue)]
  35.     private ?string $mobile null;
  36.     #[ORM\Column(length255nullabletrue)]
  37.     private ?string $fax null;
  38.     #[ORM\Column(length255)]
  39.     private ?string $email null;
  40.     #[ORM\ManyToOne(cascade: ["persist"], fetch"EAGER")]
  41.     #[ORM\JoinColumn(nullabletrue)]
  42.     private ?FichierAdmin $logo null;
  43.     #[ORM\Column(length255)]
  44.     private ?string $site_web null;
  45.     #[ORM\Column(length255nullabletrue)]
  46.     private ?string $Directeur null;
  47.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  48.     private ?\DateTimeInterface $dateCreation null;
  49.     #[ORM\OneToMany(mappedBy'entreprise'targetEntityCourierArrive::class)]
  50.     private Collection $courierArrives;
  51.    
  52.     #[ORM\OneToMany(mappedBy'entreprise'targetEntityFonction::class)]
  53.     private Collection $fonctions;
  54.     #[ORM\OneToMany(mappedBy'entreprise'targetEntityCalendar::class)]
  55.     private Collection $calendars;
  56.     public function __construct()
  57.     {
  58.         $this->employes = new ArrayCollection();
  59.         $this->configApps = new ArrayCollection();
  60.         $this->courierArrives = new ArrayCollection();
  61.         // $this->dossiers = new ArrayCollection();
  62.         $this->fonctions = new ArrayCollection();
  63.         // $this->clients = new ArrayCollection();
  64.         // $this->acteConstitutions = new ArrayCollection();
  65.         // $this->archives = new ArrayCollection();
  66.         $this->calendars = new ArrayCollection();
  67.     }
  68.     public function getId(): ?int
  69.     {
  70.         return $this->id;
  71.     }
  72.     public function getDenomination(): ?string
  73.     {
  74.         return $this->denomination;
  75.     }
  76.     public function setDenomination(string $denomination): self
  77.     {
  78.         $this->denomination $denomination;
  79.         return $this;
  80.     }
  81.     /**
  82.      * @return Collection<int, Employe>
  83.      */
  84.     public function getEmployes(): Collection
  85.     {
  86.         return $this->employes;
  87.     }
  88.     public function addEmploye(Employe $employe): self
  89.     {
  90.         if (!$this->employes->contains($employe)) {
  91.             $this->employes->add($employe);
  92.             $employe->setEntreprise($this);
  93.         }
  94.         return $this;
  95.     }
  96.     public function removeEmploye(Employe $employe): self
  97.     {
  98.         if ($this->employes->removeElement($employe)) {
  99.             // set the owning side to null (unless already changed)
  100.             if ($employe->getEntreprise() === $this) {
  101.                 $employe->setEntreprise(null);
  102.             }
  103.         }
  104.         return $this;
  105.     }
  106.     public function getCode(): ?string
  107.     {
  108.         return $this->code;
  109.     }
  110.     public function setCode(string $code): self
  111.     {
  112.         $this->code $code;
  113.         return $this;
  114.     }
  115.     /**
  116.      * @return Collection<int, ConfigApp>
  117.      */
  118.     public function getConfigApps(): Collection
  119.     {
  120.         return $this->configApps;
  121.     }
  122.     public function addConfigApp(ConfigApp $configApp): static
  123.     {
  124.         if (!$this->configApps->contains($configApp)) {
  125.             $this->configApps->add($configApp);
  126.             $configApp->setEntreprise($this);
  127.         }
  128.         return $this;
  129.     }
  130.     public function removeConfigApp(ConfigApp $configApp): static
  131.     {
  132.         if ($this->configApps->removeElement($configApp)) {
  133.             // set the owning side to null (unless already changed)
  134.             if ($configApp->getEntreprise() === $this) {
  135.                 $configApp->setEntreprise(null);
  136.             }
  137.         }
  138.         return $this;
  139.     }
  140.     public function getSigle(): ?string
  141.     {
  142.         return $this->Sigle;
  143.     }
  144.     public function setSigle(string $Sigle): static
  145.     {
  146.         $this->Sigle $Sigle;
  147.         return $this;
  148.     }
  149.     public function getAgrements(): ?string
  150.     {
  151.         return $this->Agrements;
  152.     }
  153.     public function setAgrements(string $Agrements): static
  154.     {
  155.         $this->Agrements $Agrements;
  156.         return $this;
  157.     }
  158.     public function getSituationGeo(): ?string
  159.     {
  160.         return $this->situation_geo;
  161.     }
  162.     public function setSituationGeo(string $situation_geo): static
  163.     {
  164.         $this->situation_geo $situation_geo;
  165.         return $this;
  166.     }
  167.     public function getContacts(): ?string
  168.     {
  169.         return $this->contacts;
  170.     }
  171.     public function setContacts(string $contacts): static
  172.     {
  173.         $this->contacts $contacts;
  174.         return $this;
  175.     }
  176.     public function getAdresse(): ?string
  177.     {
  178.         return $this->adresse;
  179.     }
  180.     public function setAdresse(string $adresse): static
  181.     {
  182.         $this->adresse $adresse;
  183.         return $this;
  184.     }
  185.     public function getMobile(): ?string
  186.     {
  187.         return $this->mobile;
  188.     }
  189.     public function setMobile(string $mobile): static
  190.     {
  191.         $this->mobile $mobile;
  192.         return $this;
  193.     }
  194.     public function getFax(): ?string
  195.     {
  196.         return $this->fax;
  197.     }
  198.     public function setFax(string $fax): static
  199.     {
  200.         $this->fax $fax;
  201.         return $this;
  202.     }
  203.     public function getEmail(): ?string
  204.     {
  205.         return $this->email;
  206.     }
  207.     public function setEmail(string $email): static
  208.     {
  209.         $this->email $email;
  210.         return $this;
  211.     }
  212.     public function getLogo(): ?FichierAdmin
  213.     {
  214.         return $this->logo;
  215.     }
  216.     public function setLogo(FichierAdmin $logo): static
  217.     {
  218.         $this->logo $logo;
  219.         return $this;
  220.     }
  221.     public function getSiteWeb(): ?string
  222.     {
  223.         return $this->site_web;
  224.     }
  225.     public function setSiteWeb(string $site_web): static
  226.     {
  227.         $this->site_web $site_web;
  228.         return $this;
  229.     }
  230.     public function getDirecteur(): ?string
  231.     {
  232.         return $this->Directeur;
  233.     }
  234.     public function setDirecteur(string $Directeur): static
  235.     {
  236.         $this->Directeur $Directeur;
  237.         return $this;
  238.     }
  239.     public function getDateCreation(): ?\DateTimeInterface
  240.     {
  241.         return $this->dateCreation;
  242.     }
  243.     public function setDateCreation(\DateTimeInterface $dateCreation): static
  244.     {
  245.         $this->dateCreation $dateCreation;
  246.         return $this;
  247.     }
  248.     /**
  249.      * @return Collection<int, CourierArrive>
  250.      */
  251.     public function getCourierArrives(): Collection
  252.     {
  253.         return $this->courierArrives;
  254.     }
  255.     public function addCourierArrife(CourierArrive $courierArrife): static
  256.     {
  257.         if (!$this->courierArrives->contains($courierArrife)) {
  258.             $this->courierArrives->add($courierArrife);
  259.             $courierArrife->setEntreprise($this);
  260.         }
  261.         return $this;
  262.     }
  263.     public function removeCourierArrife(CourierArrive $courierArrife): static
  264.     {
  265.         if ($this->courierArrives->removeElement($courierArrife)) {
  266.             // set the owning side to null (unless already changed)
  267.             if ($courierArrife->getEntreprise() === $this) {
  268.                 $courierArrife->setEntreprise(null);
  269.             }
  270.         }
  271.         return $this;
  272.     }
  273.     // /**
  274.     //  * @return Collection<int, Dossier>
  275.     //  */
  276.     // public function getDossiers(): Collection
  277.     // {
  278.     //     return $this->dossiers;
  279.     // }
  280.     // public function addDossier(Dossier $dossier): static
  281.     // {
  282.     //     if (!$this->dossiers->contains($dossier)) {
  283.     //         $this->dossiers->add($dossier);
  284.     //         $dossier->setEntreprise($this);
  285.     //     }
  286.     //     return $this;
  287.     // }
  288.     // public function removeDossier(Dossier $dossier): static
  289.     // {
  290.     //     if ($this->dossiers->removeElement($dossier)) {
  291.     //         // set the owning side to null (unless already changed)
  292.     //         if ($dossier->getEntreprise() === $this) {
  293.     //             $dossier->setEntreprise(null);
  294.     //         }
  295.     //     }
  296.     //     return $this;
  297.     // }
  298.     /**
  299.      * @return Collection<int, Fonction>
  300.      */
  301.     public function getFonctions(): Collection
  302.     {
  303.         return $this->fonctions;
  304.     }
  305.     public function addFonction(Fonction $fonction): static
  306.     {
  307.         if (!$this->fonctions->contains($fonction)) {
  308.             $this->fonctions->add($fonction);
  309.             $fonction->setEntreprise($this);
  310.         }
  311.         return $this;
  312.     }
  313.     public function removeFonction(Fonction $fonction): static
  314.     {
  315.         if ($this->fonctions->removeElement($fonction)) {
  316.             // set the owning side to null (unless already changed)
  317.             if ($fonction->getEntreprise() === $this) {
  318.                 $fonction->setEntreprise(null);
  319.             }
  320.         }
  321.         return $this;
  322.     }
  323.     // /**
  324.     //  * @return Collection<int, Client>
  325.     //  */
  326.     // public function getClients(): Collection
  327.     // {
  328.     //     return $this->clients;
  329.     // }
  330.     // public function addClient(Client $client): static
  331.     // {
  332.     //     if (!$this->clients->contains($client)) {
  333.     //         $this->clients->add($client);
  334.     //         $client->setEntreprise($this);
  335.     //     }
  336.     //     return $this;
  337.     // }
  338.     // public function removeClient(Client $client): static
  339.     // {
  340.     //     if ($this->clients->removeElement($client)) {
  341.     //         // set the owning side to null (unless already changed)
  342.     //         if ($client->getEntreprise() === $this) {
  343.     //             $client->setEntreprise(null);
  344.     //         }
  345.     //     }
  346.     //     return $this;
  347.     // }
  348.     // /**
  349.     //  * @return Collection<int, ActeConstitution>
  350.     //  */
  351.     // public function getActeConstitutions(): Collection
  352.     // {
  353.     //     return $this->acteConstitutions;
  354.     // }
  355.     // public function addActeConstitution(ActeConstitution $acteConstitution): static
  356.     // {
  357.     //     if (!$this->acteConstitutions->contains($acteConstitution)) {
  358.     //         $this->acteConstitutions->add($acteConstitution);
  359.     //         $acteConstitution->setEntreprise($this);
  360.     //     }
  361.     //     return $this;
  362.     // }
  363.     // public function removeActeConstitution(ActeConstitution $acteConstitution): static
  364.     // {
  365.     //     if ($this->acteConstitutions->removeElement($acteConstitution)) {
  366.     //         // set the owning side to null (unless already changed)
  367.     //         if ($acteConstitution->getEntreprise() === $this) {
  368.     //             $acteConstitution->setEntreprise(null);
  369.     //         }
  370.     //     }
  371.     //     return $this;
  372.     // }
  373.     // /**
  374.     //  * @return Collection<int, Archive>
  375.     //  */
  376.     // public function getArchives(): Collection
  377.     // {
  378.     //     return $this->archives;
  379.     // }
  380.     // public function addArchive(Archive $archive): static
  381.     // {
  382.     //     if (!$this->archives->contains($archive)) {
  383.     //         $this->archives->add($archive);
  384.     //         $archive->setEntreprise($this);
  385.     //     }
  386.     //     return $this;
  387.     // }
  388.     // public function removeArchive(Archive $archive): static
  389.     // {
  390.     //     if ($this->archives->removeElement($archive)) {
  391.     //         // set the owning side to null (unless already changed)
  392.     //         if ($archive->getEntreprise() === $this) {
  393.     //             $archive->setEntreprise(null);
  394.     //         }
  395.     //     }
  396.     //     return $this;
  397.     // }
  398.     /**
  399.      * @return Collection<int, Calendar>
  400.      */
  401.     public function getCalendars(): Collection
  402.     {
  403.         return $this->calendars;
  404.     }
  405.     public function addCalendar(Calendar $calendar): static
  406.     {
  407.         if (!$this->calendars->contains($calendar)) {
  408.             $this->calendars->add($calendar);
  409.             $calendar->setEntreprise($this);
  410.         }
  411.         return $this;
  412.     }
  413.     public function removeCalendar(Calendar $calendar): static
  414.     {
  415.         if ($this->calendars->removeElement($calendar)) {
  416.             // set the owning side to null (unless already changed)
  417.             if ($calendar->getEntreprise() === $this) {
  418.                 $calendar->setEntreprise(null);
  419.             }
  420.         }
  421.         return $this;
  422.     }
  423. }