src/Entity/ProductTranslation.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProductTranslationRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassProductTranslationRepository::class)]
  7. class ProductTranslation
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'productTranslations')]
  14.     private ?Product $product null;
  15.     #[ORM\Column(length2nullabletrue)]
  16.     private ?string $locale null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $name 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 $description null;
  27.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  28.     private ?string $itemText null;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getProduct(): ?Product
  34.     {
  35.         return $this->product;
  36.     }
  37.     public function setProduct(?Product $product): self
  38.     {
  39.         $this->product $product;
  40.         return $this;
  41.     }
  42.     public function getLocale(): ?string
  43.     {
  44.         return $this->locale;
  45.     }
  46.     public function setLocale(?string $locale): self
  47.     {
  48.         $this->locale $locale;
  49.         return $this;
  50.     }
  51.     public function getName(): ?string
  52.     {
  53.         return $this->name;
  54.     }
  55.     public function setName(?string $name): self
  56.     {
  57.         $this->name $name;
  58.         return $this;
  59.     }
  60.     public function getSlug(): ?string
  61.     {
  62.         return $this->slug;
  63.     }
  64.     public function setSlug(?string $slug): self
  65.     {
  66.         $this->slug $slug;
  67.         return $this;
  68.     }
  69.     public function getTitleTag(): ?string
  70.     {
  71.         return $this->titleTag;
  72.     }
  73.     public function setTitleTag(?string $titleTag): self
  74.     {
  75.         $this->titleTag $titleTag;
  76.         return $this;
  77.     }
  78.     public function getMetaDescription(): ?string
  79.     {
  80.         return $this->metaDescription;
  81.     }
  82.     public function setMetaDescription(?string $metaDescription): self
  83.     {
  84.         $this->metaDescription $metaDescription;
  85.         return $this;
  86.     }
  87.     public function getDescription(): ?string
  88.     {
  89.         return $this->description;
  90.     }
  91.     public function setDescription(?string $description): self
  92.     {
  93.         $this->description $description;
  94.         return $this;
  95.     }
  96.     public function getItemText(): ?string
  97.     {
  98.         return $this->itemText;
  99.     }
  100.     public function setItemText(?string $itemText): self
  101.     {
  102.         $this->itemText $itemText;
  103.         return $this;
  104.     }
  105. }