FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\UI\Api\Models\Reuser Class Reference

Model to hold info required by Reuser agent. More...

Collaboration diagram for Fossology\UI\Api\Models\Reuser:
Collaboration graph

Public Member Functions

 __construct ($reuseUpload, $reuseGroup, $reuseMain=false, $reuseEnhanced=false)
 
 setUsingArray ($reuserArray, $version=ApiVersion::V1)
 
 getReuseUpload ()
 
 getReuseGroup ()
 
 getReuseMain ()
 
 getReuseEnhanced ()
 
 getReuseReport ()
 
 getReuseCopyright ()
 
 setReuseUpload ($reuseUpload)
 
 setReuseGroup ($reuseGroup)
 
 setReuseMain ($reuseMain)
 
 setReuseEnhanced ($reuseEnhanced)
 
 setReuseReport ($reuseReport)
 
 setReuseCopyright ($reuseCopyright)
 
 getArray ($version=ApiVersion::V1)
 

Private Attributes

 $reuseUpload
 
 $reuseGroup
 
 $reuseMain
 
 $reuseEnhanced
 
 $reuseReport
 
 $reuseCopyright
 

Detailed Description

Model to hold info required by Reuser agent.

Definition at line 17 of file Reuser.php.

Constructor & Destructor Documentation

◆ __construct()

Fossology\UI\Api\Models\Reuser::__construct (   $reuseUpload,
  $reuseGroup,
  $reuseMain = false,
  $reuseEnhanced = false 
)

Reuser constructor.

Parameters
integer$reuseUpload
string$reuseGroup
boolean$reuseMain
boolean$reuseEnhanced
Exceptions

Definition at line 60 of file Reuser.php.

Member Function Documentation

◆ getArray()

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

Get reuser info as an associative array

Returns
array

Definition at line 228 of file Reuser.php.

◆ getReuseCopyright()

Fossology\UI\Api\Models\Reuser::getReuseCopyright ( )
Returns
boolean

Definition at line 159 of file Reuser.php.

◆ getReuseEnhanced()

Fossology\UI\Api\Models\Reuser::getReuseEnhanced ( )
Returns
boolean

Definition at line 143 of file Reuser.php.

◆ getReuseGroup()

Fossology\UI\Api\Models\Reuser::getReuseGroup ( )
Returns
string

Definition at line 127 of file Reuser.php.

◆ getReuseMain()

Fossology\UI\Api\Models\Reuser::getReuseMain ( )
Returns
boolean

Definition at line 135 of file Reuser.php.

◆ getReuseReport()

Fossology\UI\Api\Models\Reuser::getReuseReport ( )
Returns
boolean

Definition at line 151 of file Reuser.php.

◆ getReuseUpload()

Fossology\UI\Api\Models\Reuser::getReuseUpload ( )
Returns
integer

Definition at line 119 of file Reuser.php.

◆ setReuseCopyright()

Fossology\UI\Api\Models\Reuser::setReuseCopyright (   $reuseCopyright)
Parameters
boolean$reuseCopyright

Definition at line 218 of file Reuser.php.

◆ setReuseEnhanced()

Fossology\UI\Api\Models\Reuser::setReuseEnhanced (   $reuseEnhanced)
Parameters
boolean$reuseEnhanced

Definition at line 200 of file Reuser.php.

◆ setReuseGroup()

Fossology\UI\Api\Models\Reuser::setReuseGroup (   $reuseGroup)
Parameters
string$reuseGroup

Definition at line 180 of file Reuser.php.

◆ setReuseMain()

Fossology\UI\Api\Models\Reuser::setReuseMain (   $reuseMain)
Parameters
boolean$reuseMain

Definition at line 191 of file Reuser.php.

◆ setReuseReport()

Fossology\UI\Api\Models\Reuser::setReuseReport (   $reuseReport)
Parameters
boolean$reuseReport

Definition at line 209 of file Reuser.php.

◆ setReuseUpload()

Fossology\UI\Api\Models\Reuser::setReuseUpload (   $reuseUpload)
Parameters
integer$reuseUpload

Definition at line 168 of file Reuser.php.

◆ setUsingArray()

Fossology\UI\Api\Models\Reuser::setUsingArray (   $reuserArray,
  $version = ApiVersion::V1 
)

Set the values of Reuser based on associative array

Parameters
array$reuserArrayAssociative boolean array
Returns
Reuser Current object
Exceptions

Definition at line 84 of file Reuser.php.

Member Data Documentation

◆ $reuseCopyright

boolean Fossology\UI\Api\Models\Reuser::$reuseCopyright
private

Use enhanced reuse

Definition at line 48 of file Reuser.php.

◆ $reuseEnhanced

boolean Fossology\UI\Api\Models\Reuser::$reuseEnhanced
private

Use enhanced reuse

Definition at line 38 of file Reuser.php.

◆ $reuseGroup

string Fossology\UI\Api\Models\Reuser::$reuseGroup
private

Group name to reuse from

Definition at line 28 of file Reuser.php.

◆ $reuseMain

boolean Fossology\UI\Api\Models\Reuser::$reuseMain
private

Reuse main license

Definition at line 33 of file Reuser.php.

◆ $reuseReport

boolean Fossology\UI\Api\Models\Reuser::$reuseReport
private

Use enhanced reuse

Definition at line 43 of file Reuser.php.

◆ $reuseUpload

integer Fossology\UI\Api\Models\Reuser::$reuseUpload
private

Upload id to reuse

Definition at line 23 of file Reuser.php.


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