LicenseRepository
in package
implements
Countable
Unique collection of: - {@see SpdxLicense} - {@see NamedLicense} - {@see LicenseExpression}
.
Tags
Table of Contents
Interfaces
- Countable
Properties
- $items : array<string|int, SpdxLicense>|array<string|int, NamedLicense>|array<string|int, LicenseExpression>
Methods
- __construct() : mixed
- addItems() : $this
- Add licenses.
- count() : int
- getItems() : array<string|int, SpdxLicense>|array<string|int, NamedLicense>|array<string|int, LicenseExpression>
Properties
$items
private
array<string|int, SpdxLicense>|array<string|int, NamedLicense>|array<string|int, LicenseExpression>
$items
= []
Tags
Methods
__construct()
public
__construct(SpdxLicense|NamedLicense|LicenseExpression ...$items) : mixed
Parameters
- $items : SpdxLicense|NamedLicense|LicenseExpression
addItems()
Add licenses.
public
addItems(SpdxLicense|NamedLicense|LicenseExpression ...$items) : $this
Parameters
- $items : SpdxLicense|NamedLicense|LicenseExpression
Return values
$thiscount()
public
count() : int
Tags
Return values
intgetItems()
public
getItems() : array<string|int, SpdxLicense>|array<string|int, NamedLicense>|array<string|int, LicenseExpression>