Свойство | Тип | Описание | |
---|---|---|---|
$hash | string | ||
$identityInfo | array |
Метод | Описание | |
---|---|---|
__construct ( ) | ||
addInformation ( array $information ) | Registers several pieces of information in the identity. | |
getHash ( ) : string | Returns the hash of the current identity (e.g. md5, sha1. | |
getInformation ( ) : array | Returns registered information. | |
replaceInformation ( array $information ) | Replaces the information already registered in the identity. | |
setInformation ( string $informationName, scalar $informationValue ) | Registers an information in the identity. |
Метод | Описание | |
---|---|---|
resetHash ( ) | Resets current hash. |
public addInformation ( array $information ) | ||
$information | array | Hash where key is the information type and value is a scalar. |
public getInformation ( ) : array | ||
Результат | array |
public replaceInformation ( array $information ) | ||
$information | array | Hash where key is the information type and value is a scalar. |
public setInformation ( string $informationName, scalar $informationValue ) | ||
$informationName | string | |
$informationValue | scalar |