src/Entity/ConfigGeoServer.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ConfigGeoServerRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassConfigGeoServerRepository::class)]
  8. class ConfigGeoServer
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\Column(type'string'length255)]
  15.     private $name;
  16.     #[ORM\Column(type'string'length255)]
  17.     private $cluster;
  18.     #[ORM\Column(type'string'length255)]
  19.     private $slug;
  20.     #[ORM\Column(type'boolean'nullabletrue)]
  21.     private $filter;
  22.     #[ORM\Column(type'string'length16nullabletrue)]
  23.     private $type_filter;
  24.     #[ORM\ManyToOne(targetEntityFilterRange::class, inversedBy'configGeoServers')]
  25.     private $fk_filterRange;
  26.     #[ORM\Column(type'string'length255nullabletrue)]
  27.     private $style;
  28.     #[ORM\OneToMany(mappedBy'fk_ConfigGeoServer'targetEntityStyles::class)]
  29.     private $styles;
  30.     #[ORM\Column(type'string'length255nullabletrue)]
  31.     private $default_value;
  32.     #[ORM\Column(type'boolean'nullabletrue)]
  33.     private $multiple;
  34.     #[ORM\OneToMany(mappedBy'fk_ConfigGeoServer'targetEntityFilterOptions::class)]
  35.     private $filterOptions;
  36.     #[ORM\Column(type'integer'nullabletrue)]
  37.     private $position;
  38.     #[ORM\OneToMany(mappedBy'fk_config'targetEntityConfigGeoLayers::class)]
  39.     private $configGeoLayers;
  40.     public function __construct()
  41.     {
  42.         $this->styles = new ArrayCollection();
  43.         $this->filterOptions = new ArrayCollection();
  44.         $this->configGeoLayers = new ArrayCollection();
  45.     }
  46.     public function getId(): ?int
  47.     {
  48.         return $this->id;
  49.     }
  50.     public function getName(): ?string
  51.     {
  52.         return $this->name;
  53.     }
  54.     public function setName(string $name): self
  55.     {
  56.         $this->name $name;
  57.         return $this;
  58.     }
  59.     public function getCluster(): ?string
  60.     {
  61.         return $this->cluster;
  62.     }
  63.     public function setCluster(string $cluster): self
  64.     {
  65.         $this->cluster $cluster;
  66.         return $this;
  67.     }
  68.     public function getSlug(): ?string
  69.     {
  70.         return $this->slug;
  71.     }
  72.     public function setSlug(string $slug): self
  73.     {
  74.         $this->slug $slug;
  75.         return $this;
  76.     }
  77.     public function isFilter(): ?bool
  78.     {
  79.         return $this->filter;
  80.     }
  81.     public function setFilter(?bool $filter): self
  82.     {
  83.         $this->filter $filter;
  84.         return $this;
  85.     }
  86.     public function getTypeFilter(): ?string
  87.     {
  88.         return $this->type_filter;
  89.     }
  90.     public function setTypeFilter(?string $type_filter): self
  91.     {
  92.         $this->type_filter $type_filter;
  93.         return $this;
  94.     }
  95.     public function getFkFilterRange(): ?FilterRange
  96.     {
  97.         return $this->fk_filterRange;
  98.     }
  99.     public function setFkFilterRange(?FilterRange $fk_filterRange): self
  100.     {
  101.         $this->fk_filterRange $fk_filterRange;
  102.         return $this;
  103.     }
  104.     public function getStyle(): ?string
  105.     {
  106.         return $this->style;
  107.     }
  108.     public function setStyle(?string $style): self
  109.     {
  110.         $this->style $style;
  111.         return $this;
  112.     }
  113.     /**
  114.      * @return Collection<int, Styles>
  115.      */
  116.     public function getStyles(): Collection
  117.     {
  118.         return $this->styles;
  119.     }
  120.     public function addStyle(Styles $style): self
  121.     {
  122.         if (!$this->styles->contains($style)) {
  123.             $this->styles[] = $style;
  124.             $style->setFkConfigGeoServer($this);
  125.         }
  126.         return $this;
  127.     }
  128.     public function removeStyle(Styles $style): self
  129.     {
  130.         if ($this->styles->removeElement($style)) {
  131.             // set the owning side to null (unless already changed)
  132.             if ($style->getFkConfigGeoServer() === $this) {
  133.                 $style->setFkConfigGeoServer(null);
  134.             }
  135.         }
  136.         return $this;
  137.     }
  138.     public function getDefaultValue(): ?string
  139.     {
  140.         return $this->default_value;
  141.     }
  142.     public function setDefaultValue(?string $default_value): self
  143.     {
  144.         $this->default_value $default_value;
  145.         return $this;
  146.     }
  147.     public function isMultiple(): ?bool
  148.     {
  149.         return $this->multiple;
  150.     }
  151.     public function setMultiple(?bool $multiple): self
  152.     {
  153.         $this->multiple $multiple;
  154.         return $this;
  155.     }
  156.     /**
  157.      * @return Collection<int, FilterOptions>
  158.      */
  159.     public function getFilterOptions(): Collection
  160.     {
  161.         return $this->filterOptions;
  162.     }
  163.     public function addFilterOption(FilterOptions $filterOption): self
  164.     {
  165.         if (!$this->filterOptions->contains($filterOption)) {
  166.             $this->filterOptions[] = $filterOption;
  167.             $filterOption->setFkConfigGeoServer($this);
  168.         }
  169.         return $this;
  170.     }
  171.     public function removeFilterOption(FilterOptions $filterOption): self
  172.     {
  173.         if ($this->filterOptions->removeElement($filterOption)) {
  174.             // set the owning side to null (unless already changed)
  175.             if ($filterOption->getFkConfigGeoServer() === $this) {
  176.                 $filterOption->setFkConfigGeoServer(null);
  177.             }
  178.         }
  179.         return $this;
  180.     }
  181.     public function getPosition(): ?int
  182.     {
  183.         return $this->position;
  184.     }
  185.     public function setPosition(?int $position): self
  186.     {
  187.         $this->position $position;
  188.         return $this;
  189.     }
  190.     /**
  191.      * @return Collection<int, ConfigGeoLayers>
  192.      */
  193.     public function getConfigGeoLayers(): Collection
  194.     {
  195.         return $this->configGeoLayers;
  196.     }
  197.     public function addConfigGeoLayer(ConfigGeoLayers $configGeoLayer): self
  198.     {
  199.         if (!$this->configGeoLayers->contains($configGeoLayer)) {
  200.             $this->configGeoLayers[] = $configGeoLayer;
  201.             $configGeoLayer->setFkConfig($this);
  202.         }
  203.         return $this;
  204.     }
  205.     public function removeConfigGeoLayer(ConfigGeoLayers $configGeoLayer): self
  206.     {
  207.         if ($this->configGeoLayers->removeElement($configGeoLayer)) {
  208.             // set the owning side to null (unless already changed)
  209.             if ($configGeoLayer->getFkConfig() === $this) {
  210.                 $configGeoLayer->setFkConfig(null);
  211.             }
  212.         }
  213.         return $this;
  214.     }
  215. }