<?php
namespace App\Entity;
use App\Entity\Clinic\Clinic;
use App\Repository\TemplateRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=TemplateRepository::class)
*/
class Template
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="integer")
*/
private $categoryId;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $parentId = 0;
/**
* @ORM\Column(type="string", length=512, nullable=true)
*/
private $image;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $title;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $status;
/**
* @var Clinic
*
* @ORM\ManyToOne(targetEntity="App\Entity\Clinic\Clinic", inversedBy="templates")
*/
private $clinic;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $body;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $css;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $data=null;
/**
* @var \DateTime
*
* @ORM\Column(type="datetime")
*/
private $updated_at = null;
/**
* @var \DateTime
*
* @ORM\Column(type="datetime")
*/
private $created_at = null;
public function __construct()
{
$this->setParentId(0);
$this->setData(null);
}
public function getId(): ?int
{
return $this->id;
}
public function getParentId(): ?int
{
return $this->parentId;
}
public function setParentId(?int $parentId): self
{
$this->parentId = $parentId;
return $this;
}
public function getCategoryId(): ?int
{
return $this->categoryId;
}
public function setCategoryId(?int $categoryId): self
{
$this->categoryId = $categoryId;
return $this;
}
public function getBody(): ?string
{
return $this->body;
}
public function setBody(?string $body): self
{
$this->body = $body;
return $this;
}
public function getCss(): ?string
{
return $this->css;
}
public function setCss(?string $css): self
{
$this->css = $css;
return $this;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(?string $status): self
{
$this->status = $status;
return $this;
}
/**
* @return Clinic
*/
public function getClinic()
{
return $this->clinic;
}
/**
* @param Clinic $clinic
*
* @return $this
*/
public function setClinic(Clinic $clinic = null)
{
$this->clinic = $clinic;
return $this;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(?string $title): self
{
$this->title = $title;
return $this;
}
public function getImage(): ?string
{
return $this->image;
}
public function setImage(?string $image): self
{
$this->image = $image;
return $this;
}
public function getData(): ?string
{
return $this->data;
}
public function setData(?string $data): self
{
$this->data = $data;
return $this;
}
/**
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->created_at;
}
/**
* @param \DateTime $created_at
*
* @return $this
*/
public function setCreatedAt($created_at): self
{
$this->created_at = $created_at;
return $this;
}
/**
* @return \DateTime
*/
public function getUpdatedAt()
{
return $this->updated_at;
}
/**
* @param \DateTime $updated_at
*
* @return $this
*/
public function setUpdatedAt($updated_at): self
{
$this->updated_at = $updated_at;
return $this;
}
}