1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?php
- namespace Base\OAuthClientBundle\Security\Core\User;
- use HWI\Bundle\OAuthBundle\Security\Core\User\OAuthUser;
- class CustomOAuthUser extends OAuthUser
- {
- /**
- * @var array
- */
- protected $roles = array('ROLE_USER');
- /**
- * @var array
- */
- protected $tenancies = array();
- /**
- * @var array
- */
- protected $tenancyCurrent = array();
- /**
- * {@inheritdoc}
- */
- public function getRoles()
- {
- return $this->roles;
- }
- /**
- * @param array $roles
- */
- public function setRoles($roles)
- {
- $this->roles = $roles;
- }
- /**
- * @return array
- */
- public function getTenancies()
- {
- return $this->tenancies;
- }
- /**
- * @param array $tenancies
- */
- public function setTenancies($tenancies)
- {
- $this->tenancies = $tenancies;
- }
- /**
- * @return array
- */
- public function getTenancyCurrent()
- {
- return $this->tenancyCurrent;
- }
- /**
- * @param array $tenancyCurrent
- */
- public function setTenancyCurrent($tenancyCurrent)
- {
- $this->tenancyCurrent = $tenancyCurrent;
- }
- }
|