FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\UI\Api\Models\ScannedLicense Class Reference
Collaboration diagram for Fossology\UI\Api\Models\ScannedLicense:
Collaboration graph

Public Member Functions

 __construct ($id, $shortname, $occurence, $unique, $spdxName)
 
 getId ()
 
 getShortname ()
 
 getOccurence ()
 
 getUnique ()
 
 getSpdxName ()
 
 getJSON ($version=ApiVersion::V1)
 
 getArray ($version=ApiVersion::V1)
 
 setId ($id)
 
 setShortname ($shortname)
 
 setOccurence ($occurence)
 
 setUnique ($unique)
 
 setSpdxName ($spdxName)
 

Private Attributes

 $id
 
 $shortname
 
 $occurence
 
 $unique
 
 $spdxName
 

Detailed Description

Definition at line 12 of file ScannedLicense.php.

Constructor & Destructor Documentation

◆ __construct()

Fossology\UI\Api\Models\ScannedLicense::__construct (   $id,
  $shortname,
  $occurence,
  $unique,
  $spdxName 
)
Parameters
integer$id
string$shortname
integer$occurence
integer$unique
string$spdxName

Definition at line 47 of file ScannedLicense.php.

Member Function Documentation

◆ getArray()

Fossology\UI\Api\Models\ScannedLicense::getArray (   $version = ApiVersion::V1)

Get ScannedLicense element as associative array

Parameters
integer$version
Returns
array

Definition at line 111 of file ScannedLicense.php.

◆ getId()

Fossology\UI\Api\Models\ScannedLicense::getId ( )
Returns
integer

Definition at line 59 of file ScannedLicense.php.

◆ getJSON()

Fossology\UI\Api\Models\ScannedLicense::getJSON (   $version = ApiVersion::V1)

JSON representation of current scannedLicense

Parameters
integer$version
Returns
string

Definition at line 101 of file ScannedLicense.php.

◆ getOccurence()

Fossology\UI\Api\Models\ScannedLicense::getOccurence ( )
Returns
integer

Definition at line 75 of file ScannedLicense.php.

◆ getShortname()

Fossology\UI\Api\Models\ScannedLicense::getShortname ( )
Returns
string

Definition at line 67 of file ScannedLicense.php.

◆ getSpdxName()

Fossology\UI\Api\Models\ScannedLicense::getSpdxName ( )
Returns
string

Definition at line 91 of file ScannedLicense.php.

◆ getUnique()

Fossology\UI\Api\Models\ScannedLicense::getUnique ( )
Returns
integer

Definition at line 83 of file ScannedLicense.php.

◆ setId()

Fossology\UI\Api\Models\ScannedLicense::setId (   $id)
Parameters
integer$id

Definition at line 134 of file ScannedLicense.php.

◆ setOccurence()

Fossology\UI\Api\Models\ScannedLicense::setOccurence (   $occurence)
Parameters
integer$occurence

Definition at line 150 of file ScannedLicense.php.

◆ setShortname()

Fossology\UI\Api\Models\ScannedLicense::setShortname (   $shortname)
Parameters
string$shortname

Definition at line 142 of file ScannedLicense.php.

◆ setSpdxName()

Fossology\UI\Api\Models\ScannedLicense::setSpdxName (   $spdxName)
Parameters
string$spdxName

Definition at line 166 of file ScannedLicense.php.

◆ setUnique()

Fossology\UI\Api\Models\ScannedLicense::setUnique (   $unique)
Parameters
integer$unique

Definition at line 158 of file ScannedLicense.php.

Member Data Documentation

◆ $id

integer Fossology\UI\Api\Models\ScannedLicense::$id
private

License id

Definition at line 18 of file ScannedLicense.php.

◆ $occurence

integer Fossology\UI\Api\Models\ScannedLicense::$occurence
private

License's occurrence count

Definition at line 28 of file ScannedLicense.php.

◆ $shortname

string Fossology\UI\Api\Models\ScannedLicense::$shortname
private

License's short name

Definition at line 23 of file ScannedLicense.php.

◆ $spdxName

string Fossology\UI\Api\Models\ScannedLicense::$spdxName
private

License's spdx name

Definition at line 38 of file ScannedLicense.php.

◆ $unique

integer Fossology\UI\Api\Models\ScannedLicense::$unique
private

License's unique count

Definition at line 33 of file ScannedLicense.php.


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