src/Entity/ParagraphTranslation.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'paragraph_translation')]
  7. class ParagraphTranslation
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'translations')]
  14.     private ?Paragraph $paragraph null;
  15.     #[ORM\Column(length2nullabletrue)]
  16.     private ?string $locale null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $title null;
  19.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  20.     private ?string $text null;
  21.     public function getId(): ?int
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getParagraph(): ?Paragraph
  26.     {
  27.         return $this->paragraph;
  28.     }
  29.     public function setParagraph(?Paragraph $paragraph): self
  30.     {
  31.         $this->paragraph $paragraph;
  32.         return $this;
  33.     }
  34.     public function getLocale(): ?string
  35.     {
  36.         return $this->locale;
  37.     }
  38.     public function setLocale(?string $locale): self
  39.     {
  40.         $this->locale $locale;
  41.         return $this;
  42.     }
  43.     public function getTitle(): ?string
  44.     {
  45.         return $this->title;
  46.     }
  47.     public function setTitle(?string $title): self
  48.     {
  49.         $this->title $title;
  50.         return $this;
  51.     }
  52.     public function getText(): ?string
  53.     {
  54.         return $this->text;
  55.     }
  56.     public function setText(?string $text): self
  57.     {
  58.         $this->text $text;
  59.         return $this;
  60.     }
  61. }