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

FileInfo model to contain general error and return values. More...

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

Public Member Functions

 __construct ($view_info, $meta_info, $package_info, $tag_info, $reuse_info)
 
 getJSON ($version=ApiVersion::V1)
 
 getArray ($version=ApiVersion::V1)
 

Private Attributes

 $view_info
 
 $meta_info
 
 $package_info
 
 $tag_info
 
 $reuse_info
 

Detailed Description

FileInfo model to contain general error and return values.

Definition at line 21 of file FileInfo.php.

Constructor & Destructor Documentation

◆ __construct()

Fossology\UI\Api\Models\FileInfo::__construct (   $view_info,
  $meta_info,
  $package_info,
  $tag_info,
  $reuse_info 
)

FileInfo constructor.

Parameters
$view_info
$meta_info
$package_info
$tag_info
$reuse_info

Definition at line 61 of file FileInfo.php.

Member Function Documentation

◆ getArray()

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

Get info as associative array

Returns
array

Definition at line 85 of file FileInfo.php.

◆ getJSON()

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

Get the info as JSON representation

Returns
string

Definition at line 76 of file FileInfo.php.

Member Data Documentation

◆ $meta_info

object Fossology\UI\Api\Models\FileInfo::$meta_info
private

data for meta_info

Definition at line 33 of file FileInfo.php.

◆ $package_info

object Fossology\UI\Api\Models\FileInfo::$package_info
private

data for package_info

Definition at line 39 of file FileInfo.php.

◆ $reuse_info

object Fossology\UI\Api\Models\FileInfo::$reuse_info
private

data for reuse_info

Definition at line 51 of file FileInfo.php.

◆ $tag_info

object Fossology\UI\Api\Models\FileInfo::$tag_info
private

data for tag_info

Definition at line 45 of file FileInfo.php.

◆ $view_info

object Fossology\UI\Api\Models\FileInfo::$view_info
private

data for view_info

Definition at line 27 of file FileInfo.php.


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