FOSSology
4.4.0
Open Source License Compliance by Open Source Software
AgentRef.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
AgentRef
12
{
13
18
const
AGENT_LIST = array(
19
'nomos'
=>
'N'
,
20
'monk'
=>
'M'
,
21
'ninka'
=>
'Nk'
,
22
'reportImport'
=>
'I'
,
23
'ojo'
=>
'O'
,
24
'scancode'
=>
'Sc'
,
25
'spasht'
=>
'Sp'
,
26
'reso'
=>
'Rs'
,
27
'scanoss'
=>
'So'
28
);
32
private
$agentId;
36
private
$agentName;
40
private
$agentRevision;
41
42
public
function
__construct($agentId, $agentName, $agentRevision)
43
{
44
$this->agentId = intval($agentId);
45
$this->agentName = $agentName;
46
$this->agentRevision = $agentRevision;
47
}
48
52
public
function
getAgentId
()
53
{
54
return
$this->agentId;
55
}
56
60
public
function
getAgentName
()
61
{
62
return
$this->agentName;
63
}
64
68
public
function
getAgentRevision
()
69
{
70
return
$this->agentRevision;
71
}
72
73
public
function
__toString()
74
{
75
return
'AgentRef('
. $this->agentId .
', '
. $this->agentName .
', '
. $this->agentRevision .
')'
;
76
}
77
}
Fossology\Lib\Data\AgentRef
Definition:
AgentRef.php:12
Fossology\Lib\Data\AgentRef\getAgentRevision
getAgentRevision()
Definition:
AgentRef.php:68
Fossology\Lib\Data\AgentRef\getAgentId
getAgentId()
Definition:
AgentRef.php:52
Fossology\Lib\Data\AgentRef\getAgentName
getAgentName()
Definition:
AgentRef.php:60
src
lib
php
Data
AgentRef.php
Generated on Mon Nov 18 2024 07:37:13 for FOSSology by
1.9.1