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

Public Member Functions

 __construct ($id, $name, $acknowledgement, $isEnabled)
 
 getId ()
 
 getName ()
 
 getAcknowledgement ()
 
 getIsEnabled ()
 
 getJSON ($version=ApiVersion::V1)
 
 getArray ($version=ApiVersion::V1)
 
 setId ($id)
 
 setName ($name)
 
 setAcknowledgement ($acknowledgement)
 
 setIsEnabled ($isEnabled)
 

Private Attributes

 $id
 
 $name
 
 $acknowledgement
 
 $isEnabled
 

Detailed Description

Definition at line 13 of file AdminAcknowledgement.php.

Constructor & Destructor Documentation

◆ __construct()

Fossology\UI\Api\Models\AdminAcknowledgement::__construct (   $id,
  $name,
  $acknowledgement,
  $isEnabled 
)
Parameters
int$id
string$name
string$acknowledgement
boolean$isEnabled

Definition at line 42 of file AdminAcknowledgement.php.

Member Function Documentation

◆ getAcknowledgement()

Fossology\UI\Api\Models\AdminAcknowledgement::getAcknowledgement ( )
Returns
string

Definition at line 69 of file AdminAcknowledgement.php.

◆ getArray()

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

Get ScannedLicense element as associative array

Parameters
integer$version
Returns
array

Definition at line 99 of file AdminAcknowledgement.php.

◆ getId()

Fossology\UI\Api\Models\AdminAcknowledgement::getId ( )
Returns
int

Definition at line 53 of file AdminAcknowledgement.php.

◆ getIsEnabled()

Fossology\UI\Api\Models\AdminAcknowledgement::getIsEnabled ( )
Returns
boolean

Definition at line 77 of file AdminAcknowledgement.php.

◆ getJSON()

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

JSON representation of current scannedLicense

Parameters
integer$version
Returns
string

Definition at line 89 of file AdminAcknowledgement.php.

◆ getName()

Fossology\UI\Api\Models\AdminAcknowledgement::getName ( )
Returns
string

Definition at line 61 of file AdminAcknowledgement.php.

◆ setAcknowledgement()

Fossology\UI\Api\Models\AdminAcknowledgement::setAcknowledgement (   $acknowledgement)
Parameters
string$acknowledgement

Definition at line 136 of file AdminAcknowledgement.php.

◆ setId()

Fossology\UI\Api\Models\AdminAcknowledgement::setId (   $id)
Parameters
int$id

Definition at line 120 of file AdminAcknowledgement.php.

◆ setIsEnabled()

Fossology\UI\Api\Models\AdminAcknowledgement::setIsEnabled (   $isEnabled)
Parameters
boolean$isEnabled

Definition at line 144 of file AdminAcknowledgement.php.

◆ setName()

Fossology\UI\Api\Models\AdminAcknowledgement::setName (   $name)
Parameters
string$name

Definition at line 128 of file AdminAcknowledgement.php.

Member Data Documentation

◆ $acknowledgement

string Fossology\UI\Api\Models\AdminAcknowledgement::$acknowledgement
private

Acknowledgement text

Definition at line 29 of file AdminAcknowledgement.php.

◆ $id

int Fossology\UI\Api\Models\AdminAcknowledgement::$id
private

Id for admin acknowledgement

Definition at line 19 of file AdminAcknowledgement.php.

◆ $isEnabled

boolean Fossology\UI\Api\Models\AdminAcknowledgement::$isEnabled
private

Admin acknowledgement is enabled or not

Definition at line 34 of file AdminAcknowledgement.php.

◆ $name

string Fossology\UI\Api\Models\AdminAcknowledgement::$name
private

Admin acknowledgement name

Definition at line 24 of file AdminAcknowledgement.php.


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