FairRelease

final readonly class \TYPO3\CMS\Extensionmanager\Remote\Dto\FairRelease

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.

Tags

see
https://github.com/fairpm/fair-protocol/blob/main/specification.md#release-document

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 = ''

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|null

getArtifactSha256()

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

Return values

string
On this page