FairPackage
final readonly class \
A FAIR metadata document: one package with all of its releases, as TER serves it at /fair/v1/packages/{extensionKey}.
Internal
This class is not part of the Public TYPO3 API.
Tags
Table of Contents
Properties
- $authorEmail : string
- $authorName : string
- $composerName : string
- $description : string
- $documentation : string
- $extensionKey : string
- $id : string
- $name : string
- $releases : array
Methods
- __construct() : mixed
- fromArray() : self|null
- getNewestRelease() : FairRelease|null
- getRelease() : FairRelease|null
Properties
$authorEmail
public
string
$authorEmail
= ''
$authorName
public
string
$authorName
= ''
$composerName
public
string
$composerName
= ''
$description
public
string
$description
= ''
$documentation
public
string
$documentation
= ''
$extensionKey
public
string
$extensionKey
$id
public
string
$id
$name
public
string
$name
= ''
$releases
public
array
$releases
= []
Methods
__construct()
public
__construct(string $id, string $extensionKey[, string $composerName = '' ][, string $name = '' ][, string $description = '' ][, string $documentation = '' ][, string $authorName = '' ][, string $authorEmail = '' ][, FairRelease[] $releases = [] ]) : mixed
Parameters
- $id : string
- $extensionKey : string
- $composerName : string = ''
- $name : string = ''
- $description : string = ''
- $documentation : string = ''
- $authorName : string = ''
- $authorEmail : string = ''
- $releases : FairRelease[] = []
-
newest first
fromArray()
public
static fromArray(array|null $data) : self|null
Parameters
- $data : array|null
Return values
self|nullgetNewestRelease()
public
getNewestRelease() : FairRelease|null
Return values
FairRelease|nullgetRelease()
public
getRelease(string $version) : FairRelease|null
Parameters
- $version : string