src/Entity/WebListBlock.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Serializer\Annotation\Groups;
  5. use Symfony\Component\Serializer\Annotation\MaxDepth;
  6. /**
  7.  * @ORM\Entity(repositoryClass="App\Repository\WebListBlockRepository")
  8.  */
  9. class WebListBlock
  10. {
  11.     /**
  12.      * @ORM\Id()
  13.      * @ORM\GeneratedValue()
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity="App\Entity\WebList", inversedBy="blocks")
  19.      * @ORM\JoinColumns({
  20.      *   @ORM\JoinColumn(name="weblist_id", referencedColumnName="id", onDelete="CASCADE")
  21.      * })
  22.      */
  23.     private $webList;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity="App\Entity\ListModel", inversedBy="blocks")
  26.      * @ORM\JoinColumns({
  27.      *   @ORM\JoinColumn(name="list_model_id", referencedColumnName="id", onDelete="CASCADE")
  28.      * })
  29.      */
  30.     private $listModel;
  31.     /**
  32.      * @ORM\ManyToOne(targetEntity="App\Entity\Block", inversedBy="webLists", cascade={"persist"})
  33.      * @ORM\JoinColumns({
  34.      *   @ORM\JoinColumn(name="block_id", referencedColumnName="id")
  35.      * })
  36.      */
  37.     private $block;
  38.     /**
  39.      * @ORM\Column(type="string", nullable=true, length=100, options={"comment":"Code de position prédéfini (texte) (ex : TITRE, DESCRIPTIF, PHOTO, ...)"})
  40.      *
  41.      */
  42.     private $position;
  43.     /**
  44.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="webListBlocks")
  45.      * @ORM\JoinColumns({
  46.      *   @ORM\JoinColumn(name="owner_id", referencedColumnName="id")
  47.      * })
  48.      */
  49.     private $owner;
  50.     /**
  51.      * @ORM\ManyToOne(targetEntity="App\Entity\DnsitEntity", inversedBy="webListBlocks")
  52.      * @ORM\JoinColumns({
  53.      *   @ORM\JoinColumn(name="entity_id", referencedColumnName="id")
  54.      * })
  55.      */
  56.     private $entity;
  57.     /**
  58.      * @ORM\Column(type="datetime", nullable=true)
  59.      */
  60.     private $createdAt;
  61.     /**
  62.      * @ORM\Column(type="datetime", nullable=true)
  63.      */
  64.     private $updatedAt;
  65.     /**
  66.      * @ORM\Column(type="string", length=100, nullable=true)
  67.      */
  68.     private $blockLabel;
  69.     /**
  70.      * @ORM\Column(type="json", nullable=true)
  71.      */
  72.     private $blockLabelTranslations;
  73.     /**
  74.      * @ORM\Column(type="string", length=100, nullable=true)
  75.      */
  76.     private $blockIcon;
  77.     /**
  78.      * @ORM\Column(type="json", nullable=true)
  79.      */
  80.     private $blockColumns;
  81.     /**
  82.      * @ORM\Column(type="json", nullable=true)
  83.      */
  84.     private $blockWidth;
  85.     /**
  86.      * @ORM\Column(type="integer", nullable=true, options={"default":0, "comment":"code de statut : 0=OK"})
  87.      */
  88.     private $state;
  89.     /**
  90.      * @ORM\Column(type="string", length=255, nullable=true)
  91.      */
  92.     private $CSSClass;
  93.     /**
  94.      * @ORM\Column(type="json", nullable=true, options={"comment":"Options de visibilité"})
  95.      */
  96.     private $visibilityOptions;
  97.     public function getId(): ?int
  98.     {
  99.         return $this->id;
  100.     }
  101.     public function getCSSClass(): ?string
  102.     {
  103.         return $this->CSSClass;
  104.     }
  105.     public function setCSSClass(?string $CSSClass): self
  106.     {
  107.         $this->CSSClass $CSSClass;
  108.         return $this;
  109.     }
  110.     public function getPosition(): ?string
  111.     {
  112.         return $this->position;
  113.     }
  114.     public function setPosition(?string $position): self
  115.     {
  116.         $this->position $position;
  117.         return $this;
  118.     }
  119.     public function getCreatedAt(): ?\DateTimeInterface
  120.     {
  121.         return $this->createdAt;
  122.     }
  123.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  124.     {
  125.         $this->createdAt $createdAt;
  126.         return $this;
  127.     }
  128.     public function getUpdatedAt(): ?\DateTimeInterface
  129.     {
  130.         return $this->updatedAt;
  131.     }
  132.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  133.     {
  134.         $this->updatedAt $updatedAt;
  135.         return $this;
  136.     }
  137.     public function getBlockLabel(): ?string
  138.     {
  139.         return $this->blockLabel;
  140.     }
  141.     public function setBlockLabel(?string $blockLabel): self
  142.     {
  143.         $this->blockLabel $blockLabel;
  144.         return $this;
  145.     }
  146.     public function getBlockLabelTranslations(): ?array
  147.     {
  148.         return $this->blockLabelTranslations;
  149.     }
  150.     public function setBlockLabelTranslations(?array $blockLabelTranslations): self
  151.     {
  152.         $this->blockLabelTranslations $blockLabelTranslations;
  153.         return $this;
  154.     }
  155.     public function getBlockIcon(): ?string
  156.     {
  157.         return $this->blockIcon;
  158.     }
  159.     public function setBlockIcon(?string $blockIcon): self
  160.     {
  161.         $this->blockIcon $blockIcon;
  162.         return $this;
  163.     }
  164.     public function getBlockColumns(): ?array
  165.     {
  166.         return $this->blockColumns;
  167.     }
  168.     public function setBlockColumns(?array $blockColumns): self
  169.     {
  170.         $this->blockColumns $blockColumns;
  171.         return $this;
  172.     }
  173.     public function getBlockWidth(): ?array
  174.     {
  175.         return $this->blockWidth;
  176.     }
  177.     public function setBlockWidth(?array $blockWidth): self
  178.     {
  179.         $this->blockWidth $blockWidth;
  180.         return $this;
  181.     }
  182.     public function getState(): ?int
  183.     {
  184.         return $this->state;
  185.     }
  186.     public function setState(?int $state): self
  187.     {
  188.         $this->state $state;
  189.         return $this;
  190.     }
  191.     public function getWebList(): ?WebList
  192.     {
  193.         return $this->webList;
  194.     }
  195.     public function setWebList(?WebList $webList): self
  196.     {
  197.         $this->webList $webList;
  198.         return $this;
  199.     }
  200.     public function getListModel(): ?ListModel
  201.     {
  202.         return $this->listModel;
  203.     }
  204.     public function setListModel(?ListModel $listModel): self
  205.     {
  206.         $this->listModel $listModel;
  207.         return $this;
  208.     }
  209.     public function getBlock(): ?Block
  210.     {
  211.         return $this->block;
  212.     }
  213.     public function setBlock(?Block $block): self
  214.     {
  215.         $this->block $block;
  216.         return $this;
  217.     }
  218.     public function getOwner(): ?User
  219.     {
  220.         return $this->owner;
  221.     }
  222.     public function setOwner(?User $owner): self
  223.     {
  224.         $this->owner $owner;
  225.         return $this;
  226.     }
  227.     public function getEntity(): ?DnsitEntity
  228.     {
  229.         return $this->entity;
  230.     }
  231.     public function setEntity(?DnsitEntity $entity): self
  232.     {
  233.         $this->entity $entity;
  234.         return $this;
  235.     }
  236.     public function getVisibilityOptions() : ?array
  237.     {
  238.         return $this->visibilityOptions;
  239.     }
  240.     public function setVisibilityOptions(?array $visibilityOptions) : self
  241.     {
  242.         $this->visibilityOptions $visibilityOptions;
  243.         return $this;
  244.     }
  245. }