StringIdentifier.php 905 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. namespace Translatable\Fixture;
  3. use Gedmo\Mapping\Annotation as Gedmo;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity
  7. */
  8. class StringIdentifier
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\Column(name="uid", type="string", length=32)
  13. */
  14. private $uid;
  15. /**
  16. * @Gedmo\Translatable
  17. * @ORM\Column(name="title", type="string", length=128)
  18. */
  19. private $title;
  20. /**
  21. * Used locale to override Translation listener`s locale
  22. * @Gedmo\Locale
  23. */
  24. private $locale;
  25. public function getUid()
  26. {
  27. return $this->uid;
  28. }
  29. public function setUid($uid)
  30. {
  31. $this->uid = $uid;
  32. }
  33. public function setTitle($title)
  34. {
  35. $this->title = $title;
  36. }
  37. public function getTitle()
  38. {
  39. return $this->title;
  40. }
  41. public function setTranslatableLocale($locale)
  42. {
  43. $this->locale = $locale;
  44. }
  45. }