src/Entity/DiaporamaBlock.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\DiaporamaBlockRepository")
  6.  */
  7. class DiaporamaBlock
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\ManyToOne(targetEntity="App\Entity\Diaporama", inversedBy="blocks")
  17.      * @ORM\JoinColumns({
  18.      *   @ORM\JoinColumn(name="diaporama_id", referencedColumnName="id", onDelete="CASCADE")
  19.      * })
  20.      */
  21.     private $diaporama;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity="App\Entity\Block", inversedBy="diaporamas", cascade={"persist"})
  24.      * @ORM\JoinColumns({
  25.      *   @ORM\JoinColumn(name="block_id", referencedColumnName="id")
  26.      * })
  27.      */
  28.     private $block;
  29.     /**
  30.      * @ORM\Column(type="string", length=100, nullable=true)
  31.      */
  32.     private $position;
  33.     /**
  34.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="diaporamaBlocks")
  35.      */
  36.     private $owner;
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity="App\Entity\DnsitEntity", inversedBy="diaporamaBlocks")
  39.      */
  40.     private $entity;
  41.     /**
  42.      * @ORM\Column(type="datetime", nullable=true)
  43.      */
  44.     private $createdBy;
  45.     /**
  46.      * @ORM\Column(type="datetime", nullable=true)
  47.      */
  48.     private $updatedBy;
  49.     /**
  50.      * @ORM\Column(type="json", nullable=true)
  51.      */
  52.     private $blockStyle;
  53.     /**
  54.      * @ORM\Column(type="json", nullable=true, options={"comment":"Options de visibilité"})
  55.      */
  56.     private $visibilityOptions;
  57.     public function getId(): ?int
  58.     {
  59.         return $this->id;
  60.     }
  61.     public function getDiaporama(): ?Diaporama
  62.     {
  63.         return $this->diaporama;
  64.     }
  65.     public function setDiaporama(?Diaporama $diaporama): self
  66.     {
  67.         $this->diaporama $diaporama;
  68.         return $this;
  69.     }
  70.     public function getBlock(): ?Block
  71.     {
  72.         return $this->block;
  73.     }
  74.     public function setBlock(?Block $block): self
  75.     {
  76.         $this->block $block;
  77.         return $this;
  78.     }
  79.     public function getPosition(): ?string
  80.     {
  81.         return $this->position;
  82.     }
  83.     public function setPosition(string $position): self
  84.     {
  85.         $this->position $position;
  86.         return $this;
  87.     }
  88.     public function getOwner(): ?User
  89.     {
  90.         return $this->owner;
  91.     }
  92.     public function setOwner(?User $owner): self
  93.     {
  94.         $this->owner $owner;
  95.         return $this;
  96.     }
  97.     public function getEntity(): ?DnsitEntity
  98.     {
  99.         return $this->entity;
  100.     }
  101.     public function setEntity(?DnsitEntity $entity): self
  102.     {
  103.         $this->entity $entity;
  104.         return $this;
  105.     }
  106.     public function getCreatedBy(): ?\DateTimeInterface
  107.     {
  108.         return $this->createdBy;
  109.     }
  110.     public function setCreatedBy(?\DateTimeInterface $createdBy): self
  111.     {
  112.         $this->createdBy $createdBy;
  113.         return $this;
  114.     }
  115.     public function getUpdatedBy(): ?\DateTimeInterface
  116.     {
  117.         return $this->updatedBy;
  118.     }
  119.     public function setUpdatedBy(?\DateTimeInterface $updatedBy): self
  120.     {
  121.         $this->updatedBy $updatedBy;
  122.         return $this;
  123.     }
  124.     public function getBlockStyle(): ?array
  125.     {
  126.         return $this->blockStyle;
  127.     }
  128.     public function setBlockStyle(?array $blockStyle): self
  129.     {
  130.         $this->blockStyle $blockStyle;
  131.         return $this;
  132.     }
  133.     public function getVisibilityOptions() : ?array
  134.     {
  135.         return $this->visibilityOptions;
  136.     }
  137.     public function setVisibilityOptions(?array $visibilityOptions) : self
  138.     {
  139.         $this->visibilityOptions $visibilityOptions;
  140.         return $this;
  141.     }
  142. }