FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
Fossology\UI\Api\Models\File Class Reference
Collaboration diagram for Fossology\UI\Api\Models\File:
Collaboration graph

Public Member Functions

 __construct ($filename, $contentType, $fileContent)
 
 getFilename ()
 
 getContentType ()
 
 getFileContent ()
 
 getJSON ()
 
 getArray ()
 

Private Attributes

 $filename
 
 $contentType
 
 $fileContent
 

Detailed Description

Definition at line 25 of file File.php.

Constructor & Destructor Documentation

Fossology\UI\Api\Models\File::__construct (   $filename,
  $contentType,
  $fileContent 
)

File constructor.

Parameters
string$filename
string$contentType
string$fileContent

Definition at line 49 of file File.php.

Member Function Documentation

Fossology\UI\Api\Models\File::getArray ( )

Get the file element as associative array

Returns
array

Definition at line 94 of file File.php.

Fossology\UI\Api\Models\File::getContentType ( )
Returns
string

Definition at line 69 of file File.php.

Fossology\UI\Api\Models\File::getFileContent ( )
Returns
string

Definition at line 77 of file File.php.

Fossology\UI\Api\Models\File::getFilename ( )
Returns
string

Definition at line 61 of file File.php.

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

Definition at line 85 of file File.php.

Member Data Documentation

string File::$contentType
private

HTTP Content-Type header string for current file

Definition at line 36 of file File.php.

string File::$fileContent
private

File content

Definition at line 41 of file File.php.

string File::$filename
private

Current file name

Definition at line 31 of file File.php.


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