123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace Base\OAuthClientBundle\OAuth\Response;
- class PathUserResponse extends \HWI\Bundle\OAuthBundle\OAuth\Response\PathUserResponse
- {
- /**
- * @var array
- */
- protected $paths = array(
- 'identifier' => null,
- 'nickname' => null,
- 'firstname' => null,
- 'lastname' => null,
- 'realname' => null,
- 'email' => null,
- 'profilepicture' => null,
- 'roles' => null,
- 'tenancies' => null,
- 'tenancyCurrent' => null,
- );
- /**
- * {@inheritdoc}
- */
- public function getRoles()
- {
- return (array)$this->getValueForPath('roles');
- }
- /**
- * {@inheritdoc}
- */
- public function getTenancies()
- {
- return $this->getValueForPath('tenancies');
- }
- /**
- * {@inheritdoc}
- */
- public function getTenancyCurrent()
- {
- return $this->getValueForPath('tenancyCurrent');
- }
- }
|