File model holding information about a single file.
More...
|
const | NOT_FOUND = "Not found" |
|
const | INVALID = "Invalid keys" |
|
File model holding information about a single file.
Definition at line 18 of file File.php.
◆ __construct()
Fossology\UI\Api\Models\File::__construct |
( |
|
$hash | ) |
|
◆ getArray()
Fossology\UI\Api\Models\File::getArray |
( |
| ) |
|
Get the file element as associative array
Do not return findings and uploads if message is NOT_FOUND
or INVALID
.
- Returns
- array
Definition at line 149 of file File.php.
◆ getFindings()
Fossology\UI\Api\Models\File::getFindings |
( |
| ) |
|
- Returns
- Findings|null If message is
NOT_FOUND
or INVALID
, returns null, findings otherwise
Definition at line 77 of file File.php.
◆ getHash()
Fossology\UI\Api\Models\File::getHash |
( |
| ) |
|
◆ getMessage()
Fossology\UI\Api\Models\File::getMessage |
( |
| ) |
|
- Returns
- string
Definition at line 99 of file File.php.
◆ getUploads()
Fossology\UI\Api\Models\File::getUploads |
( |
| ) |
|
- Returns
- array|null
Definition at line 88 of file File.php.
◆ parseFromArray()
static Fossology\UI\Api\Models\File::parseFromArray |
( |
|
$inputList | ) |
|
|
static |
◆ setFindings()
Fossology\UI\Api\Models\File::setFindings |
( |
|
$findings | ) |
|
◆ setHash()
Fossology\UI\Api\Models\File::setHash |
( |
|
$hash | ) |
|
◆ setMessage()
Fossology\UI\Api\Models\File::setMessage |
( |
|
$message | ) |
|
◆ setUploads()
Fossology\UI\Api\Models\File::setUploads |
( |
|
$uploads | ) |
|
◆ $findings
◆ $hash
◆ $message
Message associated with the file
Definition at line 51 of file File.php.
◆ $uploads
The documentation for this class was generated from the following file: