Failed Conditions
Push — issue#752 ( ae1705...8960ee )
by Guilherme
08:24
created

AccountingReportEntry::getProcergsOwner()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * This file is part of the login-cidadao project or it's bundles.
4
 *
5
 * (c) Guilherme Donato <guilhermednt on github>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace PROCERGS\LoginCidadao\AccountingBundle\Model;
12
13
use LoginCidadao\OAuthBundle\Model\ClientInterface;
14
15
class AccountingReportEntry
16
{
17
    /** @var ClientInterface */
18
    private $client;
19
20
    /** @var string[] */
21
    private $procergsInitials;
22
23
    /** @var string[] */
24
    private $procergsOwner;
25
26
    /** @var string */
27
    private $systemType;
28
29
    /** @var int */
30
    private $accessTokens;
31
32
    /** @var int */
33
    private $apiUsage;
34
35
    /**
36
     * Register if this Entry was already queried in the Systems Registry.
37
     *
38
     * @var bool
39
     */
40
    private $queriedSystemsRegistry = false;
41
42
    /**
43
     * @return ClientInterface
44
     */
45
    public function getClient()
46
    {
47
        return $this->client;
48
    }
49
50
    /**
51
     * @param ClientInterface $client
52
     * @return AccountingReportEntry
53
     */
54
    public function setClient($client)
55
    {
56
        $this->client = $client;
57
58
        return $this;
59
    }
60
61
    /**
62
     * @return string[]
63
     */
64
    public function getProcergsInitials()
65
    {
66
        return $this->procergsInitials;
67
    }
68
69
    /**
70
     * @param string[] $procergsInitials
71
     * @return AccountingReportEntry
72
     */
73
    public function setProcergsInitials($procergsInitials)
74
    {
75
        $this->procergsInitials = $procergsInitials;
76
77
        return $this;
78
    }
79
80
    /**
81
     * @return string[]
82
     */
83
    public function getProcergsOwner()
84
    {
85
        return $this->procergsOwner;
86
    }
87
88
    /**
89
     * @param string[] $procergsOwner
90
     * @return AccountingReportEntry
91
     */
92
    public function setProcergsOwner($procergsOwner)
93
    {
94
        $this->procergsOwner = $procergsOwner;
95
96
        return $this;
97
    }
98
99
    /**
100
     * @return string
101
     */
102
    public function getSystemType()
103
    {
104
        return $this->systemType;
105
    }
106
107
    /**
108
     * @param string $systemType
109
     * @return AccountingReportEntry
110
     */
111
    public function setSystemType($systemType)
112
    {
113
        $this->systemType = $systemType;
114
115
        return $this;
116
    }
117
118
    /**
119
     * @return int
120
     */
121
    public function getAccessTokens()
122
    {
123
        return $this->accessTokens;
124
    }
125
126
    /**
127
     * @param int $accessTokens
128
     * @return AccountingReportEntry
129
     */
130
    public function setAccessTokens($accessTokens)
131
    {
132
        $this->accessTokens = $accessTokens;
133
134
        return $this;
135
    }
136
137
    /**
138
     * @return int
139
     */
140
    public function getApiUsage()
141
    {
142
        return $this->apiUsage;
143
    }
144
145
    /**
146
     * @param int $apiUsage
147
     * @return AccountingReportEntry
148
     */
149
    public function setApiUsage($apiUsage)
150
    {
151
        $this->apiUsage = $apiUsage;
152
153
        return $this;
154
    }
155
156
    public function getTotalUsage()
157
    {
158
        return $this->getAccessTokens() + $this->getApiUsage();
159
    }
160
161
    /**
162
     * @return bool
163
     */
164
    public function isQueriedSystemsRegistry()
165
    {
166
        return $this->queriedSystemsRegistry;
167
    }
168
169
    /**
170
     * @param bool $queriedSystemsRegistry
171
     * @return AccountingReportEntry
172
     */
173
    public function setQueriedSystemsRegistry($queriedSystemsRegistry)
174
    {
175
        $this->queriedSystemsRegistry = $queriedSystemsRegistry;
176
177
        return $this;
178
    }
179
}
180