FOSSology
4.4.0
Open Source License Compliance by Open Source Software
SearchResult.php
Go to the documentation of this file.
1
<?php
2
/*
3
SPDX-FileCopyrightText: © 2017 Siemens AG
4
5
SPDX-License-Identifier: GPL-2.0-only
6
*/
12
namespace
Fossology\UI\Api\Models;
13
18
class
SearchResult
19
{
24
private
$upload
;
29
private
$uploadTreeId
;
34
private
$filename
;
35
42
public
function
__construct
(
$upload
,
$uploadTreeId
,
$filename
)
43
{
44
$this->upload =
$upload
;
45
$this->uploadTreeId = intval(
$uploadTreeId
);
46
$this->filename =
$filename
;
47
}
48
53
public
function
getJSON
()
54
{
55
return
json_encode($this->
getArray
());
56
}
57
62
public
function
getArray
()
63
{
64
return
[
65
'upload'
=>
$this->upload
,
66
'uploadTreeId'
=>
$this->uploadTreeId
,
67
'filename'
=>
$this->filename
68
];
69
}
70
}
Fossology\UI\Api\Models\SearchResult
Model to hold search results.
Definition:
SearchResult.php:19
Fossology\UI\Api\Models\SearchResult\$upload
$upload
Definition:
SearchResult.php:24
Fossology\UI\Api\Models\SearchResult\$filename
$filename
Definition:
SearchResult.php:34
Fossology\UI\Api\Models\SearchResult\getJSON
getJSON()
Definition:
SearchResult.php:53
Fossology\UI\Api\Models\SearchResult\__construct
__construct($upload, $uploadTreeId, $filename)
Definition:
SearchResult.php:42
Fossology\UI\Api\Models\SearchResult\getArray
getArray()
Definition:
SearchResult.php:62
Fossology\UI\Api\Models\SearchResult\$uploadTreeId
$uploadTreeId
Definition:
SearchResult.php:29
src
www
ui
api
Models
SearchResult.php
Generated on Mon Nov 18 2024 07:37:14 for FOSSology by
1.9.1