FOSSology
4.4.0
Open Source License Compliance by Open Source Software
SpdxLicenseInfo.php
1
<?php
2
/*
3
SPDX-FileCopyrightText: © 2023 Siemens AG
4
SPDX-FileContributor: Gaurav Mishra <mishra.gaurav@siemens.com>
5
6
SPDX-License-Identifier: GPL-2.0-only
7
*/
8
9
namespace
Fossology\Lib\Data\Report;
10
11
use
Fossology\Lib\Data\License
;
12
13
class
SpdxLicenseInfo
14
{
19
private
$licenseObj
;
24
private
$listedLicense
=
false
;
29
private
$customText
=
false
;
34
private
$textPrinted
=
false
;
35
39
public
function
isTextPrinted
(): bool
40
{
41
return
$this->textPrinted
;
42
}
43
48
public
function
setTextPrinted
(
bool
$textPrinted
):
SpdxLicenseInfo
49
{
50
$this->textPrinted =
$textPrinted
;
51
return
$this;
52
}
53
57
public
function
getLicenseObj
():
License
58
{
59
return
$this->licenseObj
;
60
}
61
66
public
function
setLicenseObj
(
License
$licenseObj
):
SpdxLicenseInfo
67
{
68
$this->licenseObj =
$licenseObj
;
69
return
$this;
70
}
71
75
public
function
isListedLicense
(): bool
76
{
77
return
$this->listedLicense
;
78
}
79
84
public
function
setListedLicense
(
bool
$listedLicense
):
SpdxLicenseInfo
85
{
86
$this->listedLicense =
$listedLicense
;
87
return
$this;
88
}
89
93
public
function
isCustomText
(): bool
94
{
95
return
$this->customText
;
96
}
97
102
public
function
setCustomText
(
bool
$customText
):
SpdxLicenseInfo
103
{
104
$this->customText =
$customText
;
105
return
$this;
106
}
107
}
Fossology\Lib\Data\License
Definition:
License.php:12
Fossology\Lib\Data\Report\SpdxLicenseInfo
Definition:
SpdxLicenseInfo.php:14
Fossology\Lib\Data\Report\SpdxLicenseInfo\setLicenseObj
setLicenseObj(License $licenseObj)
Definition:
SpdxLicenseInfo.php:66
Fossology\Lib\Data\Report\SpdxLicenseInfo\setTextPrinted
setTextPrinted(bool $textPrinted)
Definition:
SpdxLicenseInfo.php:48
Fossology\Lib\Data\Report\SpdxLicenseInfo\isTextPrinted
isTextPrinted()
Definition:
SpdxLicenseInfo.php:39
Fossology\Lib\Data\Report\SpdxLicenseInfo\$textPrinted
$textPrinted
Definition:
SpdxLicenseInfo.php:34
Fossology\Lib\Data\Report\SpdxLicenseInfo\$licenseObj
$licenseObj
Definition:
SpdxLicenseInfo.php:19
Fossology\Lib\Data\Report\SpdxLicenseInfo\getLicenseObj
getLicenseObj()
Definition:
SpdxLicenseInfo.php:57
Fossology\Lib\Data\Report\SpdxLicenseInfo\$listedLicense
$listedLicense
Definition:
SpdxLicenseInfo.php:24
Fossology\Lib\Data\Report\SpdxLicenseInfo\setCustomText
setCustomText(bool $customText)
Definition:
SpdxLicenseInfo.php:102
Fossology\Lib\Data\Report\SpdxLicenseInfo\isListedLicense
isListedLicense()
Definition:
SpdxLicenseInfo.php:75
Fossology\Lib\Data\Report\SpdxLicenseInfo\$customText
$customText
Definition:
SpdxLicenseInfo.php:29
Fossology\Lib\Data\Report\SpdxLicenseInfo\setListedLicense
setListedLicense(bool $listedLicense)
Definition:
SpdxLicenseInfo.php:84
Fossology\Lib\Data\Report\SpdxLicenseInfo\isCustomText
isCustomText()
Definition:
SpdxLicenseInfo.php:93
src
lib
php
Data
Report
SpdxLicenseInfo.php
Generated on Thu Jan 9 2025 10:38:38 for FOSSology by
1.9.1