Class

TRex\Serialization\HashMethod

class HashMethod extends Enum

Possible hash methods for Hasher.

Constants

SHA1

MD5

Methods

__construct(mixed $value)

Constructor.

from Enum
array getConstList()

Returns the list of the possible values.

from Enum
mixed getValue()

Returns the current value.

from Enum
bool is(mixed $expectedValue)

Indicates whether the current value is $expectedValue.

from Enum

Details

in Enum at line 26
public __construct(mixed $value)

Constructor.

$data is initial data to set in the object. Keys are property names, and values are initial property values. $data could be a JSON string, an array or an array castable object.

Parameters

mixed $value

in Enum at line 39
public array getConstList()

Returns the list of the possible values.

Return Value

array

in Enum at line 50
public mixed getValue()

Returns the current value.

Return Value

mixed

in Enum at line 61
public bool is(mixed $expectedValue)

Indicates whether the current value is $expectedValue.

Parameters

mixed $expectedValue

Return Value

bool