Class

eZ\Publish\Core\MVC\Symfony\Security\User\Identity

class Identity implements Identity

Represents a user "identity", or footprint.

Instance can be transformed to a hash and used as an identity token.

Methods

__construct()

addInformation(array $information)

Registers several pieces of information in the identity.

setInformation(string $informationName, scalar $informationValue)

Registers an information in the identity.

replaceInformation(array $information)

Replaces the information already registered in the identity.

array getInformation()

Returns registered information.

string getHash()

Returns the hash of the current identity (e.g.

Details

at line 31
public __construct()

at line 41
public addInformation(array $information)

Registers several pieces of information in the identity.

Parameters

array $information Hash where key is the information type and value is a scalar.

at line 53
public setInformation(string $informationName, scalar $informationValue)

Registers an information in the identity.

Parameters

string $informationName
scalar $informationValue

at line 64
public replaceInformation(array $information)

Replaces the information already registered in the identity.

Parameters

array $information Hash where key is the information type and value is a scalar.

at line 75
public array getInformation()

Returns registered information.

Return Value

array

at line 93
public string getHash()

Returns the hash of the current identity (e.g.

md5, sha1...).

Return Value

string