FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
AgentRef.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
AgentRef
23
{
24
29
const
AGENT_LIST = array(
30
'nomos'
=>
'N'
,
31
'monk'
=>
'M'
,
32
'ninka'
=>
'Nk'
,
33
'reportImport'
=>
'I'
,
34
'ojo'
=>
'O'
35
);
39
private
$agentId;
43
private
$agentName;
47
private
$agentRevision;
48
49
public
function
__construct($agentId, $agentName, $agentRevision)
50
{
51
$this->agentId = intval($agentId);
52
$this->agentName = $agentName;
53
$this->agentRevision = $agentRevision;
54
}
55
59
public
function
getAgentId
()
60
{
61
return
$this->agentId;
62
}
63
67
public
function
getAgentName
()
68
{
69
return
$this->agentName;
70
}
71
75
public
function
getAgentRevision
()
76
{
77
return
$this->agentRevision;
78
}
79
80
public
function
__toString()
81
{
82
return
'AgentRef('
. $this->agentId .
', '
. $this->agentName .
', '
. $this->agentRevision .
')'
;
83
}
84
}
Fossology\Lib\Data\AgentRef\getAgentId
getAgentId()
Definition:
AgentRef.php:59
Fossology\Lib\Data\AgentRef
Definition:
AgentRef.php:22
Fossology\Lib\Data
Definition:
AgentRef.php:20
Fossology\Lib\Data\AgentRef\getAgentRevision
getAgentRevision()
Definition:
AgentRef.php:75
Fossology\Lib\Data\AgentRef\getAgentName
getAgentName()
Definition:
AgentRef.php:67
src
lib
php
Data
AgentRef.php
Generated on Mon Jun 29 2020 12:03:42 for FOSSology by
1.8.11