src/Entity/PageTranslation.php line 10
<?php
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity]
#[ORM\Table(name: 'page_translation')]
class PageTranslation
{
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
#[ORM\Column(type: 'integer')]
private ?int $id = null;
#[ORM\ManyToOne(targetEntity: Page::class, inversedBy: 'translations')]
#[ORM\JoinColumn(nullable: false)]
private ?Page $page;
#[ORM\Column(type: 'string', length: 255)]
private ?string $locale;
#[ORM\Column(type: 'string', length: 255)]
private ?string $title;
#[ORM\Column(type: 'string', length: 255)]
private mixed $slug;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $text;
#[ORM\Column(length: 255, nullable: true)]
private ?string $titleTag = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $metaDescription = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $keywords = null;
public function getId(): ?int
{
return $this->id;
}
public function getPage(): ?Page
{
return $this->page;
}
public function setPage(?Page $page): self
{
$this->page = $page;
return $this;
}
public function getLocale(): ?string
{
return $this->locale;
}
public function setLocale(string $locale): self
{
$this->locale = $locale;
return $this;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(string $title): self
{
$this->title = $title;
return $this;
}
public function getText(): ?string
{
return $this->text;
}
public function setText(?string $text): self
{
$this->text = $text;
return $this;
}
/**
* @return mixed
*/
public function getSlug(): mixed
{
return $this->slug;
}
/**
* @param mixed $slug
*/
public function setSlug(mixed $slug): void
{
$this->slug = $slug;
}
public function getTitleTag(): ?string
{
return $this->titleTag;
}
public function setTitleTag(?string $titleTag): self
{
$this->titleTag = $titleTag;
return $this;
}
public function getMetaDescription(): ?string
{
return $this->metaDescription;
}
public function setMetaDescription(?string $metaDescription): self
{
$this->metaDescription = $metaDescription;
return $this;
}
public function getKeywords(): ?string
{
return $this->keywords;
}
public function setKeywords(?string $keywords): self
{
$this->keywords = $keywords;
return $this;
}
}