Translation.php 994 B

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