FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\Lib\Data\License Class Reference
Inheritance diagram for Fossology\Lib\Data\License:
Inheritance graph
Collaboration diagram for Fossology\Lib\Data\License:
Collaboration graph

Public Member Functions

 __construct ($id, $shortName, $fullName, $risk, $text, $url, $detectorType, $spdxId=null)
 
 getRisk ()
 
 getDetectorType ()
 
 getSpdxId ()
 
 getText ()
 
 getUrl ()
 
 getRef ()
 
- Public Member Functions inherited from Fossology\Lib\Data\LicenseRef
 __construct ($licenseId, $licenseShortName, $licenseName, $spdxId)
 
 getId ()
 
 getFullName ()
 
 getShortName ()
 
 __toString ()
 

Private Attributes

 $text
 
 $url
 
 $risk
 
 $detectorType
 
 $spdxId
 

Additional Inherited Members

- Static Public Member Functions inherited from Fossology\Lib\Data\LicenseRef
static convertToSpdxId ($shortname, $spdxId)
 Given a license's shortname and spdx id, give out spdx id to use in reports. More...
 
static replaceSpaces ($licenseName)
 
- Public Attributes inherited from Fossology\Lib\Data\LicenseRef
const SPDXREF_PREFIX = "LicenseRef-"
 
const SPDXREF_PREFIX_FOSSOLOGY = "LicenseRef-fossology-"
 

Detailed Description

Definition at line 11 of file License.php.

Member Function Documentation

◆ getDetectorType()

Fossology\Lib\Data\License::getDetectorType ( )
Returns
int

Definition at line 55 of file License.php.

◆ getRef()

Fossology\Lib\Data\License::getRef ( )
Returns
LicenseRef

Definition at line 85 of file License.php.

◆ getRisk()

Fossology\Lib\Data\License::getRisk ( )
Returns
int

Definition at line 47 of file License.php.

◆ getSpdxId()

Fossology\Lib\Data\License::getSpdxId ( )
Returns
string

Reimplemented from Fossology\Lib\Data\LicenseRef.

Definition at line 63 of file License.php.

◆ getText()

Fossology\Lib\Data\License::getText ( )
Returns
string

Definition at line 71 of file License.php.

◆ getUrl()

Fossology\Lib\Data\License::getUrl ( )
Returns
string

Definition at line 79 of file License.php.


The documentation for this class was generated from the following file: