CycloneDX Library

LicenseExpression
in package

(SPDX) License Expression.

No validation is done internally. You may validate with SpdxLicenses::isValidLicenseString(). You may assert valid objects with LicenseFactory::makeExpression().

Tags
author

jkowalleck

Table of Contents

Properties

$acknowledgement  : LicenseAcknowledgement|null
$expression  : string

Methods

__construct()  : mixed
getAcknowledgement()  : LicenseAcknowledgement|null
getExpression()  : string
setAcknowledgement()  : $this
setExpression()  : $this

Properties

Methods

__construct()

public __construct(string $expression) : mixed
Parameters
$expression : string
Tags
psalm-assert

non-empty-string $expression

throws
DomainException

if $expression is empty string

setExpression()

public setExpression(string $expression) : $this
Parameters
$expression : string
Tags
psalm-assert

non-empty-string $expression

throws
DomainException

if $expression is empty string

Return values
$this

        
On this page

Search results