SDK for PHP V3

CalculatesChecksumTrait

Table of Contents

Properties

$supportedAlgorithms  : array<string|int, mixed>

Methods

filterChecksum()  : string|null
Returns the first checksum available, if available.
getEncodedValue()  : string

Properties

$supportedAlgorithms

public static array<string|int, mixed> $supportedAlgorithms = ['crc32c' => true, 'crc32' => true, 'sha256' => true, 'sha1' => true]

Methods

filterChecksum()

Returns the first checksum available, if available.

public static filterChecksum(array<string|int, mixed> $parameters) : string|null
Parameters
$parameters : array<string|int, mixed>
Return values
string|null

getEncodedValue()

public static getEncodedValue(string $requestedAlgorithm, string $value) : string
Parameters
$requestedAlgorithm : string

the algorithm to encode with

$value : string

the value to be encoded

Return values
string
<-- modeled_exceptions -->
On this page