src/Entity/WebMapPopupBlock.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity (repositoryClass="App\Repository\WebMapPopupBlockRepository")
  6.  */
  7. #[ApiResource(order: ['ordering'])]
  8. class WebMapPopupBlock
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", nullable=true, length=100, options={"comment":"Code de position prédéfini (texte) (ex : TITRE, COORDONNEES, PERSO, ...)"})
  18.      *
  19.      */
  20.     private $position;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity="App\Entity\WebMap", inversedBy="popupBlocks")
  23.      * @ORM\JoinColumns({
  24.      *   @ORM\JoinColumn(name="map_id", referencedColumnName="id", onDelete="CASCADE")
  25.      * })
  26.      */
  27.     private $webMap;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity="App\Entity\Block", inversedBy="webMapPopups")
  30.      * @ORM\JoinColumns({
  31.      *   @ORM\JoinColumn(name="block_id", referencedColumnName="id")
  32.      * })
  33.      */
  34.     private $block;
  35.     /**
  36.      * @ORM\Column(type="json", nullable=true, options={"comment":"Options de visibilité"})
  37.      */
  38.     private $visibilityOptions;
  39.     /**
  40.      * @ORM\Column(type="json", nullable=true)
  41.      */
  42.     private $blockStyle;
  43.     public function getId() : ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getPosition() : ?string
  48.     {
  49.         return $this->position;
  50.     }
  51.     public function setPosition(?string $position) : self
  52.     {
  53.         $this->position $position;
  54.         return $this;
  55.     }
  56.     public function getBlock() : ?Block
  57.     {
  58.         return $this->block;
  59.     }
  60.     public function setBlock(?Block $block) : self
  61.     {
  62.         $this->block $block;
  63.         return $this;
  64.     }
  65.     public function getWebMap() : ?WebMap
  66.     {
  67.         return $this->webMap;
  68.     }
  69.     public function setWebMap(?WebMap $webMap) : self
  70.     {
  71.         $this->webMap $webMap;
  72.         return $this;
  73.     }
  74.     public function getVisibilityOptions() : ?array
  75.     {
  76.         return $this->visibilityOptions;
  77.     }
  78.     public function setVisibilityOptions(?array $visibilityOptions) : self
  79.     {
  80.         $this->visibilityOptions $visibilityOptions;
  81.         return $this;
  82.     }
  83.     public function getBlockStyle(): ?array
  84.     {
  85.         return $this->blockStyle;
  86.     }
  87.     public function setBlockStyle(?array $blockStyle): self
  88.     {
  89.         $this->blockStyle $blockStyle;
  90.         return $this;
  91.     }
  92. }