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

Public Member Functions

 __construct ($data, $highlights)
 
 setData ($data)
 
 setHighlights ($highlights)
 
 getData ()
 
 getHighlights ()
 
 getJSON ()
 
 getHighlightsArray ()
 
 getArray ($dataType='licenses')
 

Private Attributes

 $data
 
 $highlights
 

Detailed Description

Definition at line 17 of file OneShot.php.

Constructor & Destructor Documentation

◆ __construct()

Fossology\UI\Api\Models\OneShot::__construct (   $data,
  $highlights 
)

OneShot constructor.

Parameters
mixed$dataLicense string or License array
Highlight[]$highlights

Definition at line 35 of file OneShot.php.

Member Function Documentation

◆ getArray()

Fossology\UI\Api\Models\OneShot::getArray (   $dataType = 'licenses')

Get the OneShot object as associative array

Returns
array

Definition at line 101 of file OneShot.php.

◆ getData()

Fossology\UI\Api\Models\OneShot::getData ( )
Returns
mixed $Data

Definition at line 64 of file OneShot.php.

◆ getHighlights()

Fossology\UI\Api\Models\OneShot::getHighlights ( )
Returns
Highlight[]

Definition at line 72 of file OneShot.php.

◆ getHighlightsArray()

Fossology\UI\Api\Models\OneShot::getHighlightsArray ( )
Returns
array

Definition at line 88 of file OneShot.php.

◆ getJSON()

Fossology\UI\Api\Models\OneShot::getJSON ( )
Returns
string json

Definition at line 80 of file OneShot.php.

◆ setData()

Fossology\UI\Api\Models\OneShot::setData (   $data)
Parameters
mixed$data

Definition at line 46 of file OneShot.php.

◆ setHighlights()

Fossology\UI\Api\Models\OneShot::setHighlights (   $highlights)
Parameters
Highlight[]$highlights

Definition at line 54 of file OneShot.php.


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