FOSSology
4.4.0
Open Source License Compliance by Open Source Software
FileLicenses.php
Go to the documentation of this file.
1
<?php
2
/*
3
SPDX-FileCopyrightText: © 2023 Siemens AG
4
Author: Gaurav Mishra <mishra.gaurav@siemens.com>
5
6
SPDX-License-Identifier: GPL-2.0-only
7
*/
12
namespace
Fossology\UI\Api\Models;
13
18
class
FileLicenses
19
{
24
private
$filePath
;
25
30
private
$findings
;
31
36
private
$clearing_status
;
37
43
public
function
__construct
(
string
$filePath
=
null
,
Findings
$findings
=
null
,
44
string
$clearing_status
=
null
)
45
{
46
$this->
setFilePath
(
$filePath
);
47
$this->
setFindings
(
$findings
);
48
$this->
setClearingStatus
(
$clearing_status
);
49
}
50
54
public
function
getFilePath
()
55
{
56
return
$this->filePath
;
57
}
58
63
public
function
setFilePath
(
$filePath
):
FileLicenses
64
{
65
$this->filePath =
$filePath
;
66
return
$this;
67
}
68
72
public
function
getFindings
()
73
{
74
return
$this->findings
;
75
}
76
81
public
function
setFindings
(
$findings
):
FileLicenses
82
{
83
$this->findings =
$findings
;
84
return
$this;
85
}
86
90
public
function
getClearingStatus
()
91
{
92
return
$this->clearing_status
;
93
}
94
99
public
function
setClearingStatus
(
$clearing_status
):
FileLicenses
100
{
101
$this->clearing_status =
$clearing_status
;
102
return
$this;
103
}
104
110
public
function
getArray
($apiVersion = ApiVersion::V1)
111
{
112
if
($apiVersion == ApiVersion::V2) {
113
return
[
114
'filePath'
=> $this->
getFilePath
(),
115
'findings'
=> $this->
getFindings
()->getArray(),
116
'clearingStatus'
=> $this->
getClearingStatus
()
117
];
118
}
else
{
119
return
[
120
'filePath'
=> $this->
getFilePath
(),
121
'findings'
=> $this->
getFindings
()->getArray(),
122
'clearing_status'
=> $this->
getClearingStatus
()
123
];
124
}
125
}
126
}
Fossology\UI\Api\Models\FileLicenses
Definition:
FileLicenses.php:19
Fossology\UI\Api\Models\FileLicenses\getArray
getArray($apiVersion=ApiVersion::V1)
Definition:
FileLicenses.php:110
Fossology\UI\Api\Models\FileLicenses\$findings
$findings
Definition:
FileLicenses.php:30
Fossology\UI\Api\Models\FileLicenses\setClearingStatus
setClearingStatus($clearing_status)
Definition:
FileLicenses.php:99
Fossology\UI\Api\Models\FileLicenses\$filePath
$filePath
Definition:
FileLicenses.php:24
Fossology\UI\Api\Models\FileLicenses\getFindings
getFindings()
Definition:
FileLicenses.php:72
Fossology\UI\Api\Models\FileLicenses\getClearingStatus
getClearingStatus()
Definition:
FileLicenses.php:90
Fossology\UI\Api\Models\FileLicenses\getFilePath
getFilePath()
Definition:
FileLicenses.php:54
Fossology\UI\Api\Models\FileLicenses\$clearing_status
$clearing_status
Definition:
FileLicenses.php:36
Fossology\UI\Api\Models\FileLicenses\setFilePath
setFilePath($filePath)
Definition:
FileLicenses.php:63
Fossology\UI\Api\Models\FileLicenses\setFindings
setFindings($findings)
Definition:
FileLicenses.php:81
Fossology\UI\Api\Models\FileLicenses\__construct
__construct(string $filePath=null, Findings $findings=null, string $clearing_status=null)
Definition:
FileLicenses.php:43
Fossology\UI\Api\Models\Findings
Model holding information about license findings and conclusions.
Definition:
Findings.php:18
src
www
ui
api
Models
FileLicenses.php
Generated on Mon Nov 18 2024 07:37:14 for FOSSology by
1.9.1