FileLocation
in package
Tags
Table of Contents
Constants
- ALGORITHM = 'sha3-512'
Properties
- $size : int
- $algorithm : string
- $hashHex : string
- $id : mixed
- $uri : mixed
Methods
- __construct() : mixed
- getAlgorithm() : string
- getHashHex() : string
- getId() : mixed
- getUri() : mixed
Constants
ALGORITHM
public
mixed
ALGORITHM
= 'sha3-512'
Properties
$size
public
int
$size
size in bytes
Tags
$algorithm
private
string
$algorithm
algorithm used to hash the file
Tags
$hashHex
private
string
$hashHex
the hash of the file using the algorithm, can be used to validate that the file has not changed
Tags
$id
private
mixed
$id
Tags
$uri
private
mixed
$uri
Tags
Methods
__construct()
public
__construct(SplFileInfo $localFile, string|null $remoteUri) : mixed
Parameters
- $localFile : SplFileInfo
- $remoteUri : string|null
getAlgorithm()
public
getAlgorithm() : string
Return values
stringgetHashHex()
public
getHashHex() : string
Return values
stringgetId()
public
getId() : mixed
getUri()
public
getUri() : mixed