SimpleArticle.php 830 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. namespace Translatable\Fixture\Document;
  3. use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoODM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. /**
  6. * @MongoODM\Document(collection="articles")
  7. */
  8. class SimpleArticle
  9. {
  10. /** @MongoODM\Id */
  11. private $id;
  12. /**
  13. * @Gedmo\Translatable
  14. * @MongoODM\String
  15. */
  16. private $title;
  17. /**
  18. * @Gedmo\Translatable
  19. * @MongoODM\String
  20. */
  21. private $content;
  22. public function getId()
  23. {
  24. return $this->id;
  25. }
  26. public function setTitle($title)
  27. {
  28. $this->title = $title;
  29. }
  30. public function getTitle()
  31. {
  32. return $this->title;
  33. }
  34. public function setContent($content)
  35. {
  36. $this->content = $content;
  37. }
  38. public function getContent()
  39. {
  40. return $this->content;
  41. }
  42. }