PHP Class Sulu\Bundle\SecurityBundle\Entity\BaseUserRole

Inheritance: extends Sulu\Bundle\CoreBundle\Entity\ApiEntity
Afficher le fichier Open project: sulu/sulu

Protected Properties

Свойство Type Description
$id integer
$locale string
$role Sulu\Component\Security\Authentication\RoleInterface
$user Sulu\Component\Security\Authentication\UserInterface

Méthodes publiques

Méthode 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 méthode

Get id.
public getId ( ) : integer
Résultat integer

getLocale() public méthode

Get locale.
public getLocale ( ) : string
Résultat string

getLocales() public méthode

Get Locales as array.
public getLocales ( ) : array
Résultat array

getRole() public méthode

Get role.
public getRole ( ) : Sulu\Component\Security\Authentication\RoleInterface
Résultat Sulu\Component\Security\Authentication\RoleInterface

getUser() public méthode

Get user.
public getUser ( ) : Sulu\Component\Security\Authentication\UserInterface
Résultat Sulu\Component\Security\Authentication\UserInterface

setLocale() public méthode

Set locale.
public setLocale ( string $locale ) : UserRole
$locale string
Résultat UserRole

setRole() public méthode

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

setUser() public méthode

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

Property Details

$id protected_oe property

protected int $id
Résultat integer

$locale protected_oe property

protected string $locale
Résultat string

$role protected_oe property

protected RoleInterface,Sulu\Component\Security\Authentication $role
Résultat Sulu\Component\Security\Authentication\RoleInterface

$user protected_oe property

protected UserInterface,Sulu\Component\Security\Authentication $user
Résultat Sulu\Component\Security\Authentication\UserInterface