Article.php 814 B

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