CycloneDX Library

LicenseIdentifiers
in package

Work with SPDX licences known to CycloneDX.

Tags
author

jkowalleck

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
psalm-var

array<string, string>|null

Methods

fixLicense()

Return the "fixed" supported SPDX license ID, or null if unsupported.

public fixLicense(string $value) : string|null
Parameters
$value : string
Return values
string|null

getKnownLicenses()

public getKnownLicenses() : array<string|int, string>
Tags
psalm-return

list

Return values
array<string|int, string>

isKnownLicense()

public isKnownLicense(string $value) : bool
Parameters
$value : string
Return values
bool

loadLicenses()

private loadLicenses() : void
Tags
psalm-assert

array<string, string> $this->licenses

throws
RuntimeException

when licenses could not be loaded


        
On this page

Search results