LicenseFactory
in package
License Factory.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- getLicenseIdentifiers() : LicenseIdentifiers
- getSpdxLicenses() : SpdxLicensesValidator
- makeDisjunctive() : SpdxLicense|NamedLicense
- makeExpression() : LicenseExpression
- makeFromString() : SpdxLicense|LicenseExpression|NamedLicense
- makeNamedLicense() : NamedLicense
- makeSpdxLicense() : SpdxLicense
Properties
$licenseIdentifiers read-only
private
LicenseIdentifiers
$licenseIdentifiers
$spdxLicenses read-only
private
SpdxLicensesValidator
$spdxLicenses
Tags
Methods
__construct()
public
__construct(LicenseIdentifiers $licenseIdentifiers, SpdxLicensesValidator $spdxLicenses) : mixed
Parameters
- $licenseIdentifiers : LicenseIdentifiers
- $spdxLicenses : SpdxLicensesValidator
Tags
getLicenseIdentifiers()
public
getLicenseIdentifiers() : LicenseIdentifiers
Return values
LicenseIdentifiersgetSpdxLicenses()
public
getSpdxLicenses() : SpdxLicensesValidator
Tags
Return values
SpdxLicensesValidatormakeDisjunctive()
public
makeDisjunctive(string $license) : SpdxLicense|NamedLicense
Parameters
- $license : string
Return values
SpdxLicense|NamedLicensemakeExpression()
public
makeExpression(string $license) : LicenseExpression
Parameters
- $license : string
Tags
Return values
LicenseExpressionmakeFromString()
public
makeFromString(string $license) : SpdxLicense|LicenseExpression|NamedLicense
Parameters
- $license : string
Return values
SpdxLicense|LicenseExpression|NamedLicensemakeNamedLicense()
public
makeNamedLicense(string $license) : NamedLicense
Parameters
- $license : string
Return values
NamedLicensemakeSpdxLicense()
public
makeSpdxLicense(string $license) : SpdxLicense
Parameters
- $license : string