Article.php 497 B

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