UserInterface.php 774 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /*
  3. * This file is part of the Sonata Project package.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Sonata\UserBundle\Model;
  11. interface UserInterface extends \FOS\UserBundle\Model\UserInterface
  12. {
  13. const GENDER_FEMALE = 'f';
  14. const GENDER_MALE = 'm';
  15. /**
  16. * NEXT_MAJOR: remove this constant.
  17. */
  18. const GENDER_MAN = 'm'; // @deprecated
  19. const GENDER_UNKNOWN = 'u';
  20. /**
  21. * @return string
  22. */
  23. public function getTwoStepVerificationCode();
  24. /**
  25. * @param string $code
  26. *
  27. * @return string
  28. */
  29. public function setTwoStepVerificationCode($code);
  30. }