FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
License.php
1
<?php
2
/*
3
Copyright (C) 2014, Siemens AG
4
Authors: Johannes Najjar, Andreas Würl
5
6
This program is free software; you can redistribute it and/or
7
modify it under the terms of the GNU General Public License
8
version 2 as published by the Free Software Foundation.
9
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License along
16
with this program; if not, write to the Free Software Foundation, Inc.,
17
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
*/
19
20
namespace
Fossology\Lib\Data
;
21
22
class
License
extends
LicenseRef
23
{
27
private
$text;
31
private
$url;
35
private
$risk;
39
private
$detectorType;
43
private
$spdxCompatible;
44
45
function
__construct($id, $shortName, $fullName, $risk, $text, $url, $detectorType, $spdxCompatible =
false
)
46
{
47
parent::__construct($id, $shortName, $fullName);
48
$this->text = $text;
49
$this->url = $url;
50
$this->risk = $risk;
51
$this->detectorType = $detectorType;
52
$this->spdxCompatible = $spdxCompatible;
53
}
54
58
public
function
getRisk
()
59
{
60
return
$this->risk;
61
}
62
66
public
function
getDetectorType
()
67
{
68
return
$this->detectorType;
69
}
70
74
public
function
getSpdxCompatible
()
75
{
76
return
$this->spdxCompatible;
77
}
78
82
public
function
getText
()
83
{
84
return
$this->text;
85
}
86
90
public
function
getUrl
()
91
{
92
return
$this->url;
93
}
94
96
public
function
getRef
()
97
{
98
return
new
parent($this->
getId
(), $this->
getShortName
(), $this->
getFullName
());
99
}
100
}
Fossology\Lib\Data\License\getRisk
getRisk()
Definition:
License.php:58
Fossology\Lib\Data\LicenseRef
Definition:
LicenseRef.php:22
Fossology\Lib\Data\License\getSpdxCompatible
getSpdxCompatible()
Definition:
License.php:74
Fossology\Lib\Data\License\getText
getText()
Definition:
License.php:82
Fossology\Lib\Data\License\getDetectorType
getDetectorType()
Definition:
License.php:66
Fossology\Lib\Data\LicenseRef\getShortName
getShortName()
Definition:
LicenseRef.php:64
Fossology\Lib\Data\License\getRef
getRef()
Definition:
License.php:96
Fossology\Lib\Data\License\getUrl
getUrl()
Definition:
License.php:90
Fossology\Lib\Data
Definition:
AgentRef.php:20
Fossology\Lib\Data\License
Definition:
License.php:22
Fossology\Lib\Data\LicenseRef\getFullName
getFullName()
Definition:
LicenseRef.php:56
Fossology\Lib\Data\LicenseRef\getId
getId()
Definition:
LicenseRef.php:48
src
lib
php
Data
License.php
Generated on Mon Jun 29 2020 12:03:42 for FOSSology by
1.8.11