src/Entity/ArticleTranslation.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ArticleTranslationRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassArticleTranslationRepository::class)]
  7. class ArticleTranslation
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'articleTranslations')]
  14.     private ?Article $article null;
  15.     #[ORM\Column(length2nullabletrue)]
  16.     private ?string $locale null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $title null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $slug null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $titleTag null;
  23.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  24.     private ?string $metaDescription null;
  25.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  26.     private ?string $text null;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getArticle(): ?Article
  32.     {
  33.         return $this->article;
  34.     }
  35.     public function setArticle(?Article $article): self
  36.     {
  37.         $this->article $article;
  38.         return $this;
  39.     }
  40.     public function getLocale(): ?string
  41.     {
  42.         return $this->locale;
  43.     }
  44.     public function setLocale(?string $locale): self
  45.     {
  46.         $this->locale $locale;
  47.         return $this;
  48.     }
  49.     public function getTitle(): ?string
  50.     {
  51.         return $this->title;
  52.     }
  53.     public function setTitle(?string $title): self
  54.     {
  55.         $this->title $title;
  56.         return $this;
  57.     }
  58.     public function getSlug(): ?string
  59.     {
  60.         return $this->slug;
  61.     }
  62.     public function setSlug(?string $slug): self
  63.     {
  64.         $this->slug $slug;
  65.         return $this;
  66.     }
  67.     public function getTitleTag(): ?string
  68.     {
  69.         return $this->titleTag;
  70.     }
  71.     public function setTitleTag(?string $titleTag): self
  72.     {
  73.         $this->titleTag $titleTag;
  74.         return $this;
  75.     }
  76.     public function getMetaDescription(): ?string
  77.     {
  78.         return $this->metaDescription;
  79.     }
  80.     public function setMetaDescription(?string $metaDescription): self
  81.     {
  82.         $this->metaDescription $metaDescription;
  83.         return $this;
  84.     }
  85.     public function getText(): ?string
  86.     {
  87.         return $this->text;
  88.     }
  89.     public function setText(?string $text): self
  90.     {
  91.         $this->text $text;
  92.         return $this;
  93.     }
  94. }