<?php
namespace App\Entity;
use App\Entity\Traits\CommonTrait;
use App\Repository\PageBlockRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
* @ORM\Entity(repositoryClass=PageBlockRepository::class)
* @ORM\Table(name="app_page_block")
* @ORM\HasLifecycleCallbacks()
* @UniqueEntity({"uuid"})
*/
class PageBlock
{
use CommonTrait;
/**
* @ORM\Column(type="string", length=255)
*/
private $name;
/**
* @ORM\Column(type="string", length=255)
*/
private $template;
/**
* @ORM\Column(type="string", length=255)
*/
private $uKey;
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 getTemplate(): ?string
{
return $this->template;
}
public function setTemplate(string $template): self
{
$this->template = $template;
return $this;
}
public function getUKey(): ?string
{
return $this->uKey;
}
public function setUKey(string $uKey): self
{
$this->uKey = $uKey;
return $this;
}
public function __toString() {
return $this->name;
}
}