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 
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 }
__construct($level, $action, $highlight)