CycloneDX Library

LicenseFactory
in package

Table of Contents

Properties

$licenseIdentifiers  : LicenseIdentifiers
$spdxLicenses  : SpdxLicenses

Methods

__construct()  : mixed
getLicenseIdentifiers()  : LicenseIdentifiers
getSpdxLicenses()  : SpdxLicenses
makeDisjunctive()  : SpdxLicense|NamedLicense
makeExpression()  : LicenseExpression
makeFromString()  : SpdxLicense|LicenseExpression|NamedLicense
makeNamedLicense()  : NamedLicense
makeSpdxLicense()  : SpdxLicense

Properties

$spdxLicenses read-only

private SpdxLicenses $spdxLicenses = new SpdxLicenses()

Methods

__construct()

public __construct([LicenseIdentifiers $licenseIdentifiers = new LicenseIdentifiers() ][, SpdxLicenses $spdxLicenses = new SpdxLicenses() ]) : mixed
Parameters
$licenseIdentifiers : LicenseIdentifiers = new LicenseIdentifiers()
$spdxLicenses : SpdxLicenses = new SpdxLicenses()

getSpdxLicenses()

public getSpdxLicenses() : SpdxLicenses
Return values
SpdxLicenses

makeSpdxLicense()

public makeSpdxLicense(string $license) : SpdxLicense
Parameters
$license : string
Tags
throws
DomainException

when the SPDX license ID is unknown

Return values
SpdxLicense

        
On this page

Search results