User.php 493 B

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