PathUserResponse.php 924 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace Base\OAuthClientBundle\OAuth\Response;
  3. class PathUserResponse extends \HWI\Bundle\OAuthBundle\OAuth\Response\PathUserResponse
  4. {
  5. /**
  6. * @var array
  7. */
  8. protected $paths = array(
  9. 'identifier' => null,
  10. 'nickname' => null,
  11. 'firstname' => null,
  12. 'lastname' => null,
  13. 'realname' => null,
  14. 'email' => null,
  15. 'profilepicture' => null,
  16. 'roles' => null,
  17. 'tenancies' => null,
  18. 'tenancyCurrent' => null,
  19. );
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public function getRoles()
  24. {
  25. return $this->getValueForPath('roles');
  26. }
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public function getTenancies()
  31. {
  32. return $this->getValueForPath('tenancies');
  33. }
  34. /**
  35. * {@inheritdoc}
  36. */
  37. public function getTenancyCurrent()
  38. {
  39. return $this->getValueForPath('tenancyCurrent');
  40. }
  41. }