Article.php 898 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. namespace Translatable\Fixture\Document;
  3. /**
  4. * @Document(collection="articles")
  5. */
  6. class Article
  7. {
  8. /** @Id */
  9. private $id;
  10. /**
  11. * @gedmo:Sluggable
  12. * @gedmo:Translatable
  13. * @String
  14. */
  15. private $title;
  16. /**
  17. * @gedmo:Sluggable
  18. * @gedmo:Translatable
  19. * @String
  20. */
  21. private $code;
  22. /**
  23. * @gedmo:Slug
  24. * @gedmo:Translatable
  25. * @String
  26. */
  27. private $slug;
  28. public function getId()
  29. {
  30. return $this->id;
  31. }
  32. public function setTitle($title)
  33. {
  34. $this->title = $title;
  35. }
  36. public function getTitle()
  37. {
  38. return $this->title;
  39. }
  40. public function setCode($code)
  41. {
  42. $this->code = $code;
  43. }
  44. public function getCode()
  45. {
  46. return $this->code;
  47. }
  48. public function getSlug()
  49. {
  50. return $this->slug;
  51. }
  52. }