PathUserResponse.php 743 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. );
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public function getRoles()
  23. {
  24. return $this->getValueForPath('roles');
  25. }
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public function getTenancies()
  30. {
  31. return $this->getValueForPath('tenancies');
  32. }
  33. }