Completed
Push — master ( 24f6ce...c3efa2 )
by Guilherme
05:36
created

AccountingReportEntry::getProcergsOwner()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
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
     * @return ClientInterface
37
     */
38
    public function getClient()
39
    {
40
        return $this->client;
41
    }
42
43
    /**
44
     * @param ClientInterface $client
45
     * @return AccountingReportEntry
46
     */
47
    public function setClient($client)
48
    {
49
        $this->client = $client;
50
51
        return $this;
52
    }
53
54
    /**
55
     * @return string[]
56
     */
57
    public function getProcergsInitials()
58
    {
59
        return $this->procergsInitials;
60
    }
61
62
    /**
63
     * @param string[] $procergsInitials
64
     * @return AccountingReportEntry
65
     */
66
    public function setProcergsInitials($procergsInitials)
67
    {
68
        $this->procergsInitials = $procergsInitials;
69
70
        return $this;
71
    }
72
73
    /**
74
     * @return string[]
75
     */
76
    public function getProcergsOwner()
77
    {
78
        return $this->procergsOwner;
79
    }
80
81
    /**
82
     * @param string[] $procergsOwner
83
     * @return AccountingReportEntry
84
     */
85
    public function setProcergsOwner($procergsOwner)
86
    {
87
        $this->procergsOwner = $procergsOwner;
88
89
        return $this;
90
    }
91
92
    /**
93
     * @return string
94
     */
95
    public function getSystemType()
96
    {
97
        return $this->systemType;
98
    }
99
100
    /**
101
     * @param string $systemType
102
     * @return AccountingReportEntry
103
     */
104
    public function setSystemType($systemType)
105
    {
106
        $this->systemType = $systemType;
107
108
        return $this;
109
    }
110
111
    /**
112
     * @return int
113
     */
114
    public function getAccessTokens()
115
    {
116
        return $this->accessTokens;
117
    }
118
119
    /**
120
     * @param int $accessTokens
121
     * @return AccountingReportEntry
122
     */
123
    public function setAccessTokens($accessTokens)
124
    {
125
        $this->accessTokens = $accessTokens;
126
127
        return $this;
128
    }
129
130
    /**
131
     * @return int
132
     */
133
    public function getApiUsage()
134
    {
135
        return $this->apiUsage;
136
    }
137
138
    /**
139
     * @param int $apiUsage
140
     * @return AccountingReportEntry
141
     */
142
    public function setApiUsage($apiUsage)
143
    {
144
        $this->apiUsage = $apiUsage;
145
146
        return $this;
147
    }
148
149
    public function getTotalUsage()
150
    {
151
        return $this->getAccessTokens() + $this->getApiUsage();
152
    }
153
}
154