Comment.php 449 B

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