Translation.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. namespace Gedmo\Translator\Entity;
  3. use Gedmo\Translator\Translation as BaseTranslation;
  4. use Doctrine\ORM\Mapping\Column;
  5. use Doctrine\ORM\Mapping\MappedSuperclass;
  6. use Doctrine\ORM\Mapping\Id;
  7. use Doctrine\ORM\Mapping\GeneratedValue;
  8. /**
  9. * Entity translation class.
  10. *
  11. * @author Konstantin Kudryashov <ever.zet@gmail.com>
  12. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  13. *
  14. * @MappedSuperclass
  15. */
  16. abstract class Translation extends BaseTranslation
  17. {
  18. /**
  19. * @var integer $id
  20. *
  21. * @Column(type="integer")
  22. * @Id
  23. * @GeneratedValue
  24. */
  25. protected $id;
  26. /**
  27. * @var string $locale
  28. *
  29. * @Column(type="string", length=8)
  30. */
  31. protected $locale;
  32. /**
  33. * @var string $property
  34. *
  35. * @Column(type="string", length=32)
  36. */
  37. protected $property;
  38. /**
  39. * @var string $value
  40. *
  41. * @Column(type="text", nullable=true)
  42. */
  43. protected $value;
  44. /**
  45. * Get id
  46. *
  47. * @return integer $id
  48. */
  49. public function getId()
  50. {
  51. return $this->id;
  52. }
  53. }