Article.php 411 B

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