FOSSology
4.4.0
Open Source License Compliance by Open Source Software
SplitPosition.php
1
<?php
2
/*
3
SPDX-FileCopyrightText: © 2014 Siemens AG
4
Author: Andreas Würl
5
6
SPDX-License-Identifier: GPL-2.0-only
7
*/
8
9
namespace
Fossology\Lib\Data;
10
11
class
SplitPosition
12
{
13
const
START =
'start'
;
14
const
END =
'end'
;
15
const
ATOM =
'atom'
;
16
const
TYPE =
'type'
;
17
21
private
$level;
25
private
$action;
29
private
$highlight;
30
36
function
__construct
($level, $action, $highlight)
37
{
38
$this->level = $level;
39
$this->action = $action;
40
$this->highlight = $highlight;
41
}
42
46
public
function
getAction
()
47
{
48
return
$this->action;
49
}
50
54
public
function
getHighlight
()
55
{
56
return
$this->highlight;
57
}
58
62
public
function
getLevel
()
63
{
64
return
$this->level;
65
}
66
67
function
__toString()
68
{
69
return
"SplitPosition(level="
. $this->level .
", "
. $this->action .
", "
. $this->highlight .
")"
;
70
}
71
}
Fossology\Lib\Data\SplitPosition
Definition:
SplitPosition.php:12
Fossology\Lib\Data\SplitPosition\getLevel
getLevel()
Definition:
SplitPosition.php:62
Fossology\Lib\Data\SplitPosition\getAction
getAction()
Definition:
SplitPosition.php:46
Fossology\Lib\Data\SplitPosition\__construct
__construct($level, $action, $highlight)
Definition:
SplitPosition.php:36
Fossology\Lib\Data\SplitPosition\getHighlight
getHighlight()
Definition:
SplitPosition.php:54
src
lib
php
Data
SplitPosition.php
Generated on Mon Nov 18 2024 07:37:13 for FOSSology by
1.9.1