PHP Class Sulu\Bundle\SecurityBundle\Entity\BaseUserRole

Inheritance: extends Sulu\Bundle\CoreBundle\Entity\ApiEntity
显示文件 Open project: sulu/sulu

Protected Properties

Property Type Description
$id integer
$locale string
$role Sulu\Component\Security\Authentication\RoleInterface
$user Sulu\Component\Security\Authentication\UserInterface

Public Methods

Method Description
getId ( ) : integer Get id.
getLocale ( ) : string Get locale.
getLocales ( ) : array Get Locales as array.
getRole ( ) : Sulu\Component\Security\Authentication\RoleInterface Get role.
getUser ( ) : Sulu\Component\Security\Authentication\UserInterface Get user.
setLocale ( string $locale ) : UserRole Set locale.
setRole ( Sulu\Component\Security\Authentication\RoleInterface $role ) : UserRole Set role.
setUser ( Sulu\Component\Security\Authentication\UserInterface $user ) : UserRole Set user.

Method Details

getId() public method

Get id.
public getId ( ) : integer
return integer

getLocale() public method

Get locale.
public getLocale ( ) : string
return string

getLocales() public method

Get Locales as array.
public getLocales ( ) : array
return array

getRole() public method

Get role.
public getRole ( ) : Sulu\Component\Security\Authentication\RoleInterface
return Sulu\Component\Security\Authentication\RoleInterface

getUser() public method

Get user.
public getUser ( ) : Sulu\Component\Security\Authentication\UserInterface
return Sulu\Component\Security\Authentication\UserInterface

setLocale() public method

Set locale.
public setLocale ( string $locale ) : UserRole
$locale string
return UserRole

setRole() public method

Set role.
public setRole ( Sulu\Component\Security\Authentication\RoleInterface $role ) : UserRole
$role Sulu\Component\Security\Authentication\RoleInterface
return UserRole

setUser() public method

Set user.
public setUser ( Sulu\Component\Security\Authentication\UserInterface $user ) : UserRole
$user Sulu\Component\Security\Authentication\UserInterface
return UserRole

Property Details

$id protected_oe property

protected int $id
return integer

$locale protected_oe property

protected string $locale
return string

$role protected_oe property

protected RoleInterface,Sulu\Component\Security\Authentication $role
return Sulu\Component\Security\Authentication\RoleInterface

$user protected_oe property

protected UserInterface,Sulu\Component\Security\Authentication $user
return Sulu\Component\Security\Authentication\UserInterface