Comment.php 1003 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. namespace Loggable\Fixture\Document;
  3. /**
  4. * @Document
  5. * @gedmo:Loggable(logEntryClass="Loggable\Fixture\Document\Log\Comment")
  6. */
  7. class Comment
  8. {
  9. /**
  10. * @Id
  11. */
  12. private $id;
  13. /**
  14. * @String
  15. */
  16. private $subject;
  17. /**
  18. * @String
  19. */
  20. private $message;
  21. /**
  22. * @ReferenceOne(targetDocument="RelatedArticle", inversedBy="comments")
  23. */
  24. private $article;
  25. public function setArticle($article)
  26. {
  27. $this->article = $article;
  28. }
  29. public function getArticle()
  30. {
  31. return $this->article;
  32. }
  33. public function getId()
  34. {
  35. return $this->id;
  36. }
  37. public function setSubject($subject)
  38. {
  39. $this->subject = $subject;
  40. }
  41. public function getSubject()
  42. {
  43. return $this->subject;
  44. }
  45. public function setMessage($message)
  46. {
  47. $this->message = $message;
  48. }
  49. public function getMessage()
  50. {
  51. return $this->message;
  52. }
  53. }