Article.php 455 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace Loggable\Fixture\Document;
  3. /**
  4. * @Document(collection="articles")
  5. * @gedmo:Loggable
  6. */
  7. class Article
  8. {
  9. /** @Id */
  10. private $id;
  11. /**
  12. * @gedmo:Sluggable
  13. * @String
  14. */
  15. private $title;
  16. public function getId()
  17. {
  18. return $this->id;
  19. }
  20. public function setTitle($title)
  21. {
  22. $this->title = $title;
  23. }
  24. public function getTitle()
  25. {
  26. return $this->title;
  27. }
  28. }