LicenseFactory
in package
License Factory.
Tags
Table of Contents
Properties
- $licenseIdentifiers : LicenseIdentifiers
- $spdxLicenseExpressionValidator : SpdxLicenseExpressionValidatorStub
- SPDX License Expression validator.
Methods
- __construct() : mixed
- getLicenseIdentifiers() : LicenseIdentifiers
- getSpdxLicensesExpressionValidator() : SpdxLicenseExpressionValidatorStub
- makeDisjunctive() : SpdxLicense|NamedLicense
- makeExpression() : LicenseExpression
- makeFromString() : SpdxLicense|LicenseExpression|NamedLicense
- makeNamedLicense() : NamedLicense
- makeSpdxLicense() : SpdxLicense
Properties
$licenseIdentifiers read-only
private
LicenseIdentifiers
$licenseIdentifiers
$spdxLicenseExpressionValidator read-only
SPDX License Expression validator.
private
SpdxLicenseExpressionValidatorStub
$spdxLicenseExpressionValidator
Something compatible with SpdxLicenseExpressionValidator.
Cannot use Type Constraints, to be compatible with 3rd party implementations on runtime.
Methods
__construct()
public
__construct(LicenseIdentifiers $licenseIdentifiers, object $spdxLicenseExpressionValidator) : mixed
Parameters
- $licenseIdentifiers : LicenseIdentifiers
- $spdxLicenseExpressionValidator : object
-
Something compatible with SpdxLicenseExpressionValidatorStub
getLicenseIdentifiers()
public
getLicenseIdentifiers() : LicenseIdentifiers
Return values
LicenseIdentifiersgetSpdxLicensesExpressionValidator()
public
getSpdxLicensesExpressionValidator() : SpdxLicenseExpressionValidatorStub
Return values
SpdxLicenseExpressionValidatorStubmakeDisjunctive()
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