StringIdentifier.php 834 B

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