src/ProductBundle/Entity/Translation/SubAttributeTranslation.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\ProductBundle\Entity\Translation;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use PN\LocaleBundle\Entity\Language;
  5. use PN\LocaleBundle\Model\EditableTranslation;
  6. use PN\LocaleBundle\Model\TranslationEntity;
  7. ;
  8. /**
  9. * @ORM\Entity
  10. * @ORM\Table(name="product_sub_attribute_translations")
  11. */
  12. class SubAttributeTranslation extends TranslationEntity implements EditableTranslation
  13. {
  14. /**
  15. * @var string
  16. *
  17. * @ORM\Column(name="title", type="string", length=100)
  18. */
  19. private $title;
  20. /**
  21. * @ORM\Id
  22. * @ORM\ManyToOne(targetEntity="App\ProductBundle\Entity\SubAttribute", inversedBy="translations")
  23. */
  24. protected $translatable;
  25. /**
  26. * @var Language
  27. * @ORM\Id
  28. * @ORM\ManyToOne(targetEntity="PN\LocaleBundle\Entity\Language")
  29. */
  30. protected $language;
  31. public function setTitle(?string $title): static
  32. {
  33. $this->title = $title;
  34. return $this;
  35. }
  36. public function getTitle(): ?string
  37. {
  38. return $this->title;
  39. }
  40. }