User.php 401 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Tree\Fixture\Closure;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity
  6. */
  7. class User extends Person
  8. {
  9. /**
  10. * @ORM\Column(name="username", type="string", length=64)
  11. */
  12. private $username;
  13. public function setUsername($username)
  14. {
  15. $this->username = $username;
  16. }
  17. public function getUsername()
  18. {
  19. return $this->username;
  20. }
  21. }