<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
use Symfony\Component\Serializer\Annotation\MaxDepth;
/**
* @ORM\Entity(repositoryClass="App\Repository\WebListBlockRepository")
*/
class WebListBlock
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\WebList", inversedBy="blocks")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="weblist_id", referencedColumnName="id", onDelete="CASCADE")
* })
*/
private $webList;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\ListModel", inversedBy="blocks")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="list_model_id", referencedColumnName="id", onDelete="CASCADE")
* })
*/
private $listModel;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Block", inversedBy="webLists", cascade={"persist"})
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="block_id", referencedColumnName="id")
* })
*/
private $block;
/**
* @ORM\Column(type="string", nullable=true, length=100, options={"comment":"Code de position prédéfini (texte) (ex : TITRE, DESCRIPTIF, PHOTO, ...)"})
*
*/
private $position;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="webListBlocks")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="owner_id", referencedColumnName="id")
* })
*/
private $owner;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\DnsitEntity", inversedBy="webListBlocks")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="entity_id", referencedColumnName="id")
* })
*/
private $entity;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $createdAt;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $updatedAt;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
private $blockLabel;
/**
* @ORM\Column(type="json", nullable=true)
*/
private $blockLabelTranslations;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
private $blockIcon;
/**
* @ORM\Column(type="json", nullable=true)
*/
private $blockColumns;
/**
* @ORM\Column(type="json", nullable=true)
*/
private $blockWidth;
/**
* @ORM\Column(type="integer", nullable=true, options={"default":0, "comment":"code de statut : 0=OK"})
*/
private $state;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $CSSClass;
/**
* @ORM\Column(type="json", nullable=true, options={"comment":"Options de visibilité"})
*/
private $visibilityOptions;
public function getId(): ?int
{
return $this->id;
}
public function getCSSClass(): ?string
{
return $this->CSSClass;
}
public function setCSSClass(?string $CSSClass): self
{
$this->CSSClass = $CSSClass;
return $this;
}
public function getPosition(): ?string
{
return $this->position;
}
public function setPosition(?string $position): self
{
$this->position = $position;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getBlockLabel(): ?string
{
return $this->blockLabel;
}
public function setBlockLabel(?string $blockLabel): self
{
$this->blockLabel = $blockLabel;
return $this;
}
public function getBlockLabelTranslations(): ?array
{
return $this->blockLabelTranslations;
}
public function setBlockLabelTranslations(?array $blockLabelTranslations): self
{
$this->blockLabelTranslations = $blockLabelTranslations;
return $this;
}
public function getBlockIcon(): ?string
{
return $this->blockIcon;
}
public function setBlockIcon(?string $blockIcon): self
{
$this->blockIcon = $blockIcon;
return $this;
}
public function getBlockColumns(): ?array
{
return $this->blockColumns;
}
public function setBlockColumns(?array $blockColumns): self
{
$this->blockColumns = $blockColumns;
return $this;
}
public function getBlockWidth(): ?array
{
return $this->blockWidth;
}
public function setBlockWidth(?array $blockWidth): self
{
$this->blockWidth = $blockWidth;
return $this;
}
public function getState(): ?int
{
return $this->state;
}
public function setState(?int $state): self
{
$this->state = $state;
return $this;
}
public function getWebList(): ?WebList
{
return $this->webList;
}
public function setWebList(?WebList $webList): self
{
$this->webList = $webList;
return $this;
}
public function getListModel(): ?ListModel
{
return $this->listModel;
}
public function setListModel(?ListModel $listModel): self
{
$this->listModel = $listModel;
return $this;
}
public function getBlock(): ?Block
{
return $this->block;
}
public function setBlock(?Block $block): self
{
$this->block = $block;
return $this;
}
public function getOwner(): ?User
{
return $this->owner;
}
public function setOwner(?User $owner): self
{
$this->owner = $owner;
return $this;
}
public function getEntity(): ?DnsitEntity
{
return $this->entity;
}
public function setEntity(?DnsitEntity $entity): self
{
$this->entity = $entity;
return $this;
}
public function getVisibilityOptions() : ?array
{
return $this->visibilityOptions;
}
public function setVisibilityOptions(?array $visibilityOptions) : self
{
$this->visibilityOptions = $visibilityOptions;
return $this;
}
}