FairRelease
final readonly class \
One release of a FAIR metadata document: the version, when it was published, what it requires and suggests, and the "package" artifact with its checksum.
Internal
This class is not part of the Public TYPO3 API.
Tags
Table of Contents
Properties
- $artifactChecksum : string
- $artifactUrl : string
- $date : int
- $requires : array
- $suggests : array
- $version : string
Methods
- __construct() : mixed
- fromArray() : self|null
- getArtifactSha256() : string
- The bare hash when the checksum is a sha256 one, which is what downloading verifies against; an empty string for any other algorithm.
Properties
$artifactChecksum
public
string
$artifactChecksum
= ''
$artifactUrl
public
string
$artifactUrl
= ''
$date
public
int
$date
= 0
$requires
public
array
$requires
= []
$suggests
public
array
$suggests
= []
$version
public
string
$version
Methods
__construct()
public
__construct(string $version[, int $date = 0 ][, array<string, string> $requires = [] ][, array<string, string> $suggests = [] ][, string $artifactUrl = '' ][, string $artifactChecksum = '' ]) : mixed
Parameters
- $version : string
- $date : int = 0
- $requires : array<string, string> = []
-
requirement key ("env:typo3", "did:web:…") to version constraint
- $suggests : array<string, string> = []
-
same shape as $requires
- $artifactUrl : string = ''
- $artifactChecksum : string = ''
fromArray()
public
static fromArray(array|null $data) : self|null
Parameters
- $data : array|null
Return values
self|nullgetArtifactSha256()
The bare hash when the checksum is a sha256 one, which is what downloading verifies against; an empty string for any other algorithm.
public
getArtifactSha256() : string