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

Public Member Functions

 __construct ($id, $shortName, $count, $spdxId)
 
 getId ()
 
 getShortName ()
 
 getCount ()
 
 getSpdxId ()
 
 getJSON ($version=ApiVersion::V1)
 
 getArray ($version=ApiVersion::V1)
 
 setId ($id)
 
 setShortName ($shortName)
 
 setCount ($count)
 
 setSpdxId ($spdxId)
 

Private Attributes

 $id
 
 $shortName
 
 $count
 
 $spdxId
 

Detailed Description

Definition at line 12 of file EditedLicense.php.

Constructor & Destructor Documentation

◆ __construct()

Fossology\UI\Api\Models\EditedLicense::__construct (   $id,
  $shortName,
  $count,
  $spdxId 
)
Parameters
integer$id
string$shortName
integer$count
string$spdxId

Definition at line 41 of file EditedLicense.php.

Member Function Documentation

◆ getArray()

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

Get ScannedLicense element as associative array

Parameters
integer$version
Returns
array

Definition at line 96 of file EditedLicense.php.

◆ getCount()

Fossology\UI\Api\Models\EditedLicense::getCount ( )
Returns
integer

Definition at line 68 of file EditedLicense.php.

◆ getId()

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

Definition at line 52 of file EditedLicense.php.

◆ getJSON()

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

JSON representation of current scannedLicense

Parameters
integer$version
Returns
string

Definition at line 86 of file EditedLicense.php.

◆ getShortName()

Fossology\UI\Api\Models\EditedLicense::getShortName ( )
Returns
string

Definition at line 60 of file EditedLicense.php.

◆ getSpdxId()

Fossology\UI\Api\Models\EditedLicense::getSpdxId ( )
Returns
string

Definition at line 76 of file EditedLicense.php.

◆ setCount()

Fossology\UI\Api\Models\EditedLicense::setCount (   $count)
Parameters
integer$count

Definition at line 133 of file EditedLicense.php.

◆ setId()

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

Definition at line 117 of file EditedLicense.php.

◆ setShortName()

Fossology\UI\Api\Models\EditedLicense::setShortName (   $shortName)
Parameters
string$shortName

Definition at line 125 of file EditedLicense.php.

◆ setSpdxId()

Fossology\UI\Api\Models\EditedLicense::setSpdxId (   $spdxId)
Parameters
string$spdxName

Definition at line 141 of file EditedLicense.php.

Member Data Documentation

◆ $count

integer Fossology\UI\Api\Models\EditedLicense::$count
private

License's count

Definition at line 28 of file EditedLicense.php.

◆ $id

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

License id

Definition at line 18 of file EditedLicense.php.

◆ $shortName

string Fossology\UI\Api\Models\EditedLicense::$shortName
private

License's short name

Definition at line 23 of file EditedLicense.php.

◆ $spdxId

string Fossology\UI\Api\Models\EditedLicense::$spdxId
private

License's spdx id

Definition at line 33 of file EditedLicense.php.


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