src/Entity/PageTranslation.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity]
  6. #[ORM\Table(name'page_translation')]
  7. class PageTranslation
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue(strategy'IDENTITY')]
  11.     #[ORM\Column(type'integer')]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(targetEntityPage::class, inversedBy'translations')]
  14.     #[ORM\JoinColumn(nullablefalse)]
  15.     private ?Page $page;
  16.     #[ORM\Column(type'string'length255)]
  17.     private ?string $locale;
  18.     #[ORM\Column(type'string'length255)]
  19.     private ?string $title;
  20.     #[ORM\Column(type'string'length255)]
  21.     private mixed $slug;
  22.     #[ORM\Column(type'text'nullabletrue)]
  23.     private ?string $text;
  24.     #[ORM\Column(length255nullabletrue)]
  25.     private ?string $titleTag null;
  26.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  27.     private ?string $metaDescription null;
  28.     #[ORM\Column(length255nullabletrue)]
  29.     private ?string $keywords null;
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function getPage(): ?Page
  35.     {
  36.         return $this->page;
  37.     }
  38.     public function setPage(?Page $page): self
  39.     {
  40.         $this->page $page;
  41.         return $this;
  42.     }
  43.     public function getLocale(): ?string
  44.     {
  45.         return $this->locale;
  46.     }
  47.     public function setLocale(string $locale): self
  48.     {
  49.         $this->locale $locale;
  50.         return $this;
  51.     }
  52.     public function getTitle(): ?string
  53.     {
  54.         return $this->title;
  55.     }
  56.     public function setTitle(string $title): self
  57.     {
  58.         $this->title $title;
  59.         return $this;
  60.     }
  61.     public function getText(): ?string
  62.     {
  63.         return $this->text;
  64.     }
  65.     public function setText(?string $text): self
  66.     {
  67.         $this->text $text;
  68.         return $this;
  69.     }
  70.     /**
  71.      * @return mixed
  72.      */
  73.     public function getSlug(): mixed
  74.     {
  75.         return $this->slug;
  76.     }
  77.     /**
  78.      * @param mixed $slug
  79.      */
  80.     public function setSlug(mixed $slug): void
  81.     {
  82.         $this->slug $slug;
  83.     }
  84.     public function getTitleTag(): ?string
  85.     {
  86.         return $this->titleTag;
  87.     }
  88.     public function setTitleTag(?string $titleTag): self
  89.     {
  90.         $this->titleTag $titleTag;
  91.         return $this;
  92.     }
  93.     public function getMetaDescription(): ?string
  94.     {
  95.         return $this->metaDescription;
  96.     }
  97.     public function setMetaDescription(?string $metaDescription): self
  98.     {
  99.         $this->metaDescription $metaDescription;
  100.         return $this;
  101.     }
  102.     public function getKeywords(): ?string
  103.     {
  104.         return $this->keywords;
  105.     }
  106.     public function setKeywords(?string $keywords): self
  107.     {
  108.         $this->keywords $keywords;
  109.         return $this;
  110.     }
  111. }