Article.php 716 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace Test\Fixture\Document\PHPCR;
  3. use Doctrine\ODM\PHPCR\Mapping\Annotations as PHPCR;
  4. /**
  5. * @PHPCR\Document
  6. */
  7. class Article
  8. {
  9. /**
  10. * @PHPCR\Id
  11. */
  12. private $id;
  13. /**
  14. * @PHPCR\ParentDocument
  15. */
  16. private $parent;
  17. /**
  18. * @PHPCR\Field(type="string")
  19. */
  20. private $title;
  21. public function getId()
  22. {
  23. return $this->id;
  24. }
  25. public function getParent()
  26. {
  27. return $this->parent;
  28. }
  29. public function setParent($parent)
  30. {
  31. $this->parent = $parent;
  32. }
  33. public function setTitle($title)
  34. {
  35. $this->title = $title;
  36. }
  37. public function getTitle()
  38. {
  39. return $this->title;
  40. }
  41. }