NativePHPHash implements Algorithm, Describable
FinalYes
Interfaces
Methods
- __construct() : mixed
- describe() : null|Description
- fromDescription() : static
- hash() : string
Methods
__construct()
public
__construct([string $algorithm = 'xxh128' ][, bool $binary = false ][, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $algorithm : string = 'xxh128'
- $binary : bool = false
- $options : array<string|int, mixed> = []
describe()
public
describe() : null|Description
Return values
null|Description —null when this instance cannot cross a process boundary (a live client, a custom collaborator)
fromDescription()
public
static fromDescription(array<string|int, mixed> $data, Rebuild $rebuild) : static
Parameters
- $data : array<string|int, mixed>
- $rebuild : Rebuild
Return values
statichash()
public
hash(string $value) : string
Parameters
- $value : string