src/Entity/Layers.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LayersRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassLayersRepository::class)]
  8. class Layers
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\Column(type'string'length255nullabletrue)]
  15.     private $name;
  16.     #[ORM\Column(type'string'length255nullabletrue)]
  17.     private $name_geo_server;
  18.     #[ORM\Column(type'boolean'nullabletrue)]
  19.     private $static;
  20.     #[ORM\Column(type'float'nullabletrue)]
  21.     private $zoom_min;
  22.     #[ORM\Column(type'float'nullabletrue)]
  23.     private $zoom_max;
  24.     #[ORM\Column(type'integer'nullabletrue)]
  25.     private $position;
  26.     #[ORM\Column(type'string'length255nullabletrue)]
  27.     private $slug;
  28.     #[ORM\Column(type'boolean'nullabletrue)]
  29.     private $token;
  30.     #[ORM\Column(type'string'length255nullabletrue)]
  31.     private $authKey;
  32.     #[ORM\Column(type'float'nullabletrue)]
  33.     private $opacity;
  34.     #[ORM\Column(type'integer'nullabletrue)]
  35.     private $grouped;
  36.     #[ORM\Column(type'boolean'nullabletrue)]
  37.     private $visibility;
  38.     #[ORM\OneToMany(mappedBy'fk_layers'targetEntityConfigGeoLayers::class)]
  39.     private $configGeoLayers;
  40.     public function __construct()
  41.     {
  42.         $this->configGeoLayers = new ArrayCollection();
  43.     }
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getName(): ?string
  49.     {
  50.         return $this->name;
  51.     }
  52.     public function setName(?string $name): self
  53.     {
  54.         $this->name $name;
  55.         return $this;
  56.     }
  57.     public function getNameGeoServer(): ?string
  58.     {
  59.         return $this->name_geo_server;
  60.     }
  61.     public function setNameGeoServer(?string $name_geo_server): self
  62.     {
  63.         $this->name_geo_server $name_geo_server;
  64.         return $this;
  65.     }
  66.     public function isStatic(): ?bool
  67.     {
  68.         return $this->static;
  69.     }
  70.     public function setStatic(?bool $static): self
  71.     {
  72.         $this->static $static;
  73.         return $this;
  74.     }
  75.     public function getZoomMin(): ?float
  76.     {
  77.         return $this->zoom_min;
  78.     }
  79.     public function setZoomMin(?float $zoom_min): self
  80.     {
  81.         $this->zoom_min $zoom_min;
  82.         return $this;
  83.     }
  84.     public function getZoomMax(): ?float
  85.     {
  86.         return $this->zoom_max;
  87.     }
  88.     public function setZoomMax(?float $zoom_max): self
  89.     {
  90.         $this->zoom_max $zoom_max;
  91.         return $this;
  92.     }
  93.     public function getPosition(): ?int
  94.     {
  95.         return $this->position;
  96.     }
  97.     public function setPosition(?int $position): self
  98.     {
  99.         $this->position $position;
  100.         return $this;
  101.     }
  102.     public function getSlug(): ?string
  103.     {
  104.         return $this->slug;
  105.     }
  106.     public function setSlug(?string $slug): self
  107.     {
  108.         $this->slug $slug;
  109.         return $this;
  110.     }
  111.     public function isToken(): ?bool
  112.     {
  113.         return $this->token;
  114.     }
  115.     public function setToken(?bool $token): self
  116.     {
  117.         $this->token $token;
  118.         return $this;
  119.     }
  120.     public function getAuthKey(): ?string
  121.     {
  122.         return $this->authKey;
  123.     }
  124.     public function setAuthKey(?string $authKey): self
  125.     {
  126.         $this->authKey $authKey;
  127.         return $this;
  128.     }
  129.     public function getOpacity(): ?float
  130.     {
  131.         return $this->opacity;
  132.     }
  133.     public function setOpacity(?float $opacity): self
  134.     {
  135.         $this->opacity $opacity;
  136.         return $this;
  137.     }
  138.     public function getGrouped(): ?int
  139.     {
  140.         return $this->grouped;
  141.     }
  142.     public function setGrouped(?int $grouped): self
  143.     {
  144.         $this->grouped $grouped;
  145.         return $this;
  146.     }
  147.     public function isVisibility(): ?bool
  148.     {
  149.         return $this->visibility;
  150.     }
  151.     public function setVisibility(?bool $visibility): self
  152.     {
  153.         $this->visibility $visibility;
  154.         return $this;
  155.     }
  156.     /**
  157.      * @return Collection<int, ConfigGeoLayers>
  158.      */
  159.     public function getConfigGeoLayers(): Collection
  160.     {
  161.         return $this->configGeoLayers;
  162.     }
  163.     public function addConfigGeoLayer(ConfigGeoLayers $configGeoLayer): self
  164.     {
  165.         if (!$this->configGeoLayers->contains($configGeoLayer)) {
  166.             $this->configGeoLayers[] = $configGeoLayer;
  167.             $configGeoLayer->setFkLayers($this);
  168.         }
  169.         return $this;
  170.     }
  171.     public function removeConfigGeoLayer(ConfigGeoLayers $configGeoLayer): self
  172.     {
  173.         if ($this->configGeoLayers->removeElement($configGeoLayer)) {
  174.             // set the owning side to null (unless already changed)
  175.             if ($configGeoLayer->getFkLayers() === $this) {
  176.                 $configGeoLayer->setFkLayers(null);
  177.             }
  178.         }
  179.         return $this;
  180.     }
  181. }