12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace Blameable\Fixture\Document;
- use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
- /**
- * @ODM\Document(collection="users")
- */
- class User
- {
- /** @ODM\Id */
- private $id;
- /**
- * @ODM\String
- */
- private $username;
- public function getId()
- {
- return $this->id;
- }
- public function setUsername($username)
- {
- $this->username = $username;
- }
- public function getUsername()
- {
- return $this->username;
- }
- }
|