Article.php 506 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. * @String
  13. */
  14. private $title;
  15. public function __toString()
  16. {
  17. return $this->title;
  18. }
  19. public function getId()
  20. {
  21. return $this->id;
  22. }
  23. public function setTitle($title)
  24. {
  25. $this->title = $title;
  26. }
  27. public function getTitle()
  28. {
  29. return $this->title;
  30. }
  31. }