PHP Интерфейс Symfony\Component\Security\Authentication\Token\TokenInterface

Автор: Fabien Potencier ([email protected])
Наследование: extends Serializable
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
__toString ( ) : string Returns a string representation of the token.
eraseCredentials ( ) Removes sensitive information from the token.
getCredentials ( ) : mixed Returns the user credentials.
getRoles ( ) : Role[] Returns the user roles.
getUser ( ) : object Returns a user instance.
isAuthenticated ( ) : boolean Checks if the user is authenticated or not.
isImmutable ( ) : boolean Checks whether the token is immutable or not.
setAuthenticated ( boolean $isAuthenticated ) Sets the authenticated flag.

Описание методов

__toString() публичный Метод

Returns a string representation of the token.
public __toString ( ) : string
Результат string A string representation

eraseCredentials() публичный Метод

Removes sensitive information from the token.
public eraseCredentials ( )

getCredentials() публичный Метод

Returns the user credentials.
public getCredentials ( ) : mixed
Результат mixed The user credentials

getRoles() публичный Метод

Returns the user roles.
public getRoles ( ) : Role[]
Результат Role[] An array of Role instances.

getUser() публичный Метод

Returns a user instance.
public getUser ( ) : object
Результат object The User instance

isAuthenticated() публичный Метод

Checks if the user is authenticated or not.
public isAuthenticated ( ) : boolean
Результат boolean true if the token has been authenticated, false otherwise

isImmutable() публичный Метод

Checks whether the token is immutable or not.
public isImmutable ( ) : boolean
Результат boolean true if the token is immutable, false otherwise

setAuthenticated() публичный Метод

Sets the authenticated flag.
public setAuthenticated ( boolean $isAuthenticated )
$isAuthenticated boolean The authenticated flag