PathUserResponse.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. 'hasIntercom' => null,
  20. );
  21. /**
  22. * {@inheritdoc}
  23. */
  24. public function getRoles()
  25. {
  26. return (array)$this->getValueForPath('roles');
  27. }
  28. /**
  29. * {@inheritdoc}
  30. */
  31. public function getTenancies()
  32. {
  33. return $this->getValueForPath('tenancies');
  34. }
  35. /**
  36. * {@inheritdoc}
  37. */
  38. public function getTenancyCurrent()
  39. {
  40. return $this->getValueForPath('tenancyCurrent');
  41. }
  42. /**
  43. * {@inheritdoc}
  44. */
  45. public function getHasIntercom()
  46. {
  47. return $this->getValueForPath('hasIntercom');
  48. }
  49. }