LicenseIdentifiers
in package
Work with SPDX licences known to CycloneDX.
Tags
Table of Contents
Properties
- $values : array<string|int, string>|null
Methods
- __construct() : mixed
- fixLicense() : string|null
- Return the "fixed" supported SPDX license ID, or null if unsupported.
- getKnownLicenses() : array<string|int, string>
- getResourcesFile() : string
- isKnownLicense() : bool
- loadLicenses() : void
Properties
$values
private
array<string|int, string>|null
$values
= null
Tags
Methods
__construct()
public
__construct() : mixed
fixLicense()
Return the "fixed" supported SPDX license ID, or null if unsupported.
public
fixLicense(string $value) : string|null
Parameters
- $value : string
Return values
string|nullgetKnownLicenses()
public
getKnownLicenses() : array<string|int, string>
Tags
Return values
array<string|int, string>getResourcesFile()
public
getResourcesFile() : string
Return values
stringisKnownLicense()
public
isKnownLicense(string $value) : bool
Parameters
- $value : string
Return values
boolloadLicenses()
private
loadLicenses() : void