Property | Type | Description | |
---|---|---|---|
$hash | string | ||
$identityInfo | array |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
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 | ||
return | 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 |