\CryptoManana\Core\Traits\MessageDigestionAlgorithmVariationTrait

Trait AlgorithmVariationTrait - Reusable implementation of `AlgorithmVariationInterface`.

Summary

Methods
Properties
Constants
setAlgorithmVariation()
getAlgorithmVariation()
$$algorithmVariation
No constants found
validateVersion()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$$algorithmVariation

$$algorithmVariation : integer

The internal algorithm variation property storage.

Type

integer

Methods

setAlgorithmVariation()

setAlgorithmVariation(integer  $version) : $this

Setter for the algorithm variation version property.

Parameters

integer $version

The algorithm variation version.

Throws

\Exception

Validation errors.

Returns

$this —

The hash algorithm object.

getAlgorithmVariation()

getAlgorithmVariation() : integer

Getter for the algorithm variation version property.

Returns

integer —

The algorithm variation version.

validateVersion()

validateVersion(integer  $version) 

Internal method for version range validation.

Parameters

integer $version

The version for validation checks.

Throws

\Exception

Validation errors.