<?php
namespace App\Entity;
use App\Repository\PageTranslationRepository;
use Doctrine\ORM\Mapping as ORM;
use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
/**
* @ORM\Entity(repositoryClass=PageTranslationRepository::class)
*/
class PageTranslation implements TranslationInterface
{
use TranslationTrait;
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $titre;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $preview;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $contenu;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $seo_titre;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $seo_description;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $seo_keywords;
/**
* @ORM\Column(type="string", length=500, nullable=true)
*/
private $menutitre;
/**
* @ORM\Column(type="string", length=500, nullable=true)
*/
private $menuclass;
public function __toString(){
return $this->titre;
}
public function getId(): ?int
{
return $this->id;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(?string $titre): self
{
$this->titre = $titre;
return $this;
}
public function getPreview(): ?string
{
return $this->preview;
}
public function setPreview(?string $preview): self
{
$this->preview = $preview;
return $this;
}
public function getContenu(): ?string
{
return $this->contenu;
}
public function setContenu(?string $contenu): self
{
$this->contenu = $contenu;
return $this;
}
public function getSeoTitre(): ?string
{
return $this->seo_titre;
}
public function setSeoTitre(?string $seo_titre): self
{
$this->seo_titre = $seo_titre;
return $this;
}
public function getSeoDescription(): ?string
{
return $this->seo_description;
}
public function setSeoDescription(?string $seo_description): self
{
$this->seo_description = $seo_description;
return $this;
}
public function getSeoKeywords(): ?string
{
return $this->seo_keywords;
}
public function setSeoKeywords(?string $seo_keywords): self
{
$this->seo_keywords = $seo_keywords;
return $this;
}
public function getMenutitre(): ?string
{
return $this->menutitre;
}
public function setMenutitre(?string $menutitre): self
{
$this->menutitre = $menutitre;
return $this;
}
public function getMenuclass(): ?string
{
return $this->menuclass;
}
public function setMenuclass(?string $menuclass): self
{
$this->menuclass = $menuclass;
return $this;
}
}