Translation.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. * @link http://www.gediminasm.org
  13. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  14. *
  15. * @MappedSuperclass
  16. */
  17. abstract class Translation extends BaseTranslation
  18. {
  19. /**
  20. * @var integer $id
  21. *
  22. * @Column(type="integer")
  23. * @Id
  24. * @GeneratedValue
  25. */
  26. protected $id;
  27. /**
  28. * @var string $locale
  29. *
  30. * @Column(type="string", length=8)
  31. */
  32. protected $locale;
  33. /**
  34. * @var string $property
  35. *
  36. * @Column(type="string", length=32)
  37. */
  38. protected $property;
  39. /**
  40. * @var text $value
  41. *
  42. * @Column(type="text", nullable=true)
  43. */
  44. protected $value;
  45. /**
  46. * Get id
  47. *
  48. * @return integer $id
  49. */
  50. public function getId()
  51. {
  52. return $this->id;
  53. }
  54. }