CycloneDX Library

SpdxLicense
in package
Uses _DisjunctiveLicenseBase

Disjunctive license with (SPDX-)ID - aka SpdxLicense.

No validation is done internally. You may validate with LicenseIdentifiers::isKnownLicense(). You may assert valid objects with LicenseFactory::makeSpdxLicense().

Tags
author

jkowalleck

Table of Contents

Properties

$id  : string
A valid supported SPDX license ID.

Methods

__construct()  : mixed
getId()  : string
setId()  : $this

Properties

$id

A valid supported SPDX license ID.

private string $id
Tags
psalm-var

non-empty-string

Methods

__construct()

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

non-empty-string $id

throws
DomainException

if $id is empty string

getId()

public getId() : string
Tags
psalm-return

non-empty-string

Return values
string

setId()

public setId(string $id) : $this
Parameters
$id : string
Tags
psalm-assert

non-empty-string $id

throws
DomainException

if $id is empty string

Return values
$this

        
On this page

Search results