FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
SplitPosition.php
1
<?php
2
/*
3
Copyright (C) 2014, Siemens AG
4
Author: 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
SplitPosition
23
{
24
const
START =
'start'
;
25
const
END =
'end'
;
26
const
ATOM =
'atom'
;
27
const
TYPE =
'type'
;
28
32
private
$level;
36
private
$action;
40
private
$highlight;
41
47
function
__construct
($level, $action, $highlight)
48
{
49
$this->level = $level;
50
$this->action = $action;
51
$this->highlight = $highlight;
52
}
53
57
public
function
getAction
()
58
{
59
return
$this->action;
60
}
61
65
public
function
getHighlight
()
66
{
67
return
$this->highlight;
68
}
69
73
public
function
getLevel
()
74
{
75
return
$this->level;
76
}
77
78
function
__toString()
79
{
80
return
"SplitPosition(level="
. $this->level .
", "
. $this->action .
", "
. $this->highlight .
")"
;
81
}
82
}
Fossology\Lib\Data\SplitPosition\getHighlight
getHighlight()
Definition:
SplitPosition.php:65
Fossology\Lib\Data\SplitPosition\getAction
getAction()
Definition:
SplitPosition.php:57
Fossology\Lib\Data
Definition:
AgentRef.php:20
Fossology\Lib\Data\SplitPosition\getLevel
getLevel()
Definition:
SplitPosition.php:73
Fossology\Lib\Data\SplitPosition
Definition:
SplitPosition.php:22
Fossology\Lib\Data\SplitPosition\__construct
__construct($level, $action, $highlight)
Definition:
SplitPosition.php:47
src
lib
php
Data
SplitPosition.php
Generated on Mon Jun 29 2020 12:03:42 for FOSSology by
1.8.11