<?php
namespace App\Entity;
use App\Repository\SectionLayoutRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=SectionLayoutRepository::class)
*/
class SectionLayout
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $name;
/**
* @ORM\Column(type="json")
*/
private $layout = [];
/**
* @ORM\Column(type="string", length=255)
*/
private $type;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $elementType;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getLayout(): ?array
{
return $this->layout;
}
public function setLayout(array $layout): self
{
$this->layout = $layout;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(string $type): self
{
$this->type = $type;
return $this;
}
public function getElementType(): ?string
{
return $this->elementType;
}
public function setElementType(?string $elementType): self
{
$this->elementType = $elementType;
return $this;
}
}