<?php
namespace App\Entity;
use App\Repository\LegalPageRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=LegalPageRepository::class)
*/
class LegalPage
{
const TYPE_MENTIONS = 'mentions-legales';
const TYPE_CGU = 'cgu';
const TYPE_PRIVACY = 'politique-de-confidentialite';
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=80, unique=true)
*/
private $type;
/**
* @ORM\Column(type="string", length=255)
*/
private $title;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $content;
/**
* @ORM\Column(type="datetime")
*/
private $updatedAt;
public function __construct()
{
$this->updatedAt = new \DateTime();
}
public function getId(): ?int { return $this->id; }
public function getType(): ?string { return $this->type; }
public function setType(string $type): self { $this->type = $type; return $this; }
public function getTitle(): ?string { return $this->title; }
public function setTitle(string $title): self { $this->title = $title; return $this; }
public function getContent(): ?string { return $this->content; }
public function setContent(?string $content): self { $this->content = $content; return $this; }
public function getUpdatedAt(): ?\DateTime { return $this->updatedAt; }
public function setUpdatedAt(\DateTime $updatedAt): self { $this->updatedAt = $updatedAt; return $this; }
}