<?php
namespace App\Entity;
use App\Entity\SuperClass\BaseEntity;
use App\Repository\TemplatesRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=TemplatesRepository::class)
*/
class Templates extends BaseEntity
{
/**
* @ORM\Column(type="string", length=255)
*/
private $layout;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="templates")
*/
private $created_by;
/**
* @ORM\Column(type="string", length=255)
*/
private $type;
public function getLayout(): ?string
{
return $this->layout;
}
public function setLayout(string $layout): self
{
$this->layout = $layout;
return $this;
}
public function getCreatedBy(): ?User
{
return $this->created_by;
}
public function setCreatedBy(?User $created_by): self
{
$this->created_by = $created_by;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(string $type): self
{
$this->type = $type;
return $this;
}
public function __toString()
{
return $this->getLayout().' - '.$this->getType();
}
}