Completed
Push — master ( b07376...497c09 )
by WEBEWEB
01:29
created

RepositoryReport   A

Complexity

Total Complexity 15

Size/Duplication

Total Lines 198
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 15
lcom 0
cbo 0
dl 0
loc 198
rs 10
c 0
b 0
f 0

15 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getAvailable() 0 3 1
A getAverage() 0 3 1
A getCount() 0 3 1
A getEntity() 0 3 1
A getField() 0 3 1
A getMaximum() 0 3 1
A getMinimum() 0 3 1
A setAvailable() 0 4 1
A setAverage() 0 4 1
A setCount() 0 4 1
A setEntity() 0 4 1
A setField() 0 4 1
A setMaximum() 0 4 1
A setMinimum() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the core-bundle package.
5
 *
6
 * (c) 2019 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Bundle\CoreBundle\Model;
13
14
/**
15
 * Repository report.
16
 *
17
 * @author webeweb <https://github.com/webeweb/>
18
 * @package WBW\Bundle\CoreBundle\Model
19
 */
20
class RepositoryReport {
21
22
    /**
23
     * Available
24
     *
25
     * @var int
26
     */
27
    private $available;
28
29
    /**
30
     * Average.
31
     *
32
     * @var float
33
     */
34
    private $average;
35
36
    /**
37
     * Count.
38
     *
39
     * @var int
40
     */
41
    private $count;
42
43
    /**
44
     * Entity.
45
     *
46
     * @var string
47
     */
48
    private $entity;
49
50
    /**
51
     * Field.
52
     *
53
     * @var string
54
     */
55
    private $field;
56
57
    /**
58
     * Maximum.
59
     *
60
     * @var int
61
     */
62
    private $maximum;
63
64
    /**
65
     * Minimum.
66
     *
67
     * @var int
68
     */
69
    private $minimum;
70
71
    /**
72
     * Constructor.
73
     */
74
    public function __construct() {
75
        // NOTHING TO DO.
76
    }
77
78
    /**
79
     * Get the available.
80
     *
81
     * @return int Returns the available.
82
     */
83
    public function getAvailable() {
84
        return $this->available;
85
    }
86
87
    /**
88
     * Get the average.
89
     *
90
     * @return float Returns the average.
91
     */
92
    public function getAverage() {
93
        return $this->average;
94
    }
95
96
    /**
97
     * Get the count.
98
     *
99
     * @return int Returns the count.
100
     */
101
    public function getCount() {
102
        return $this->count;
103
    }
104
105
    /**
106
     * Get the entity.
107
     *
108
     * @return string Returns the entity.
109
     */
110
    public function getEntity() {
111
        return $this->entity;
112
    }
113
114
    /**
115
     * Get the field.
116
     *
117
     * @return string Returns the field.
118
     */
119
    public function getField() {
120
        return $this->field;
121
    }
122
123
    /**
124
     * Get the maximum.
125
     *
126
     * @return int Returns the maximum.
127
     */
128
    public function getMaximum() {
129
        return $this->maximum;
130
    }
131
132
    /**
133
     * Get the minimum.
134
     *
135
     * @return int Returns the minimum.
136
     */
137
    public function getMinimum() {
138
        return $this->minimum;
139
    }
140
141
    /**
142
     * Set the available.
143
     *
144
     * @param int $available The available.
145
     * @return RepositoryReport Returns this repository report.
146
     */
147
    public function setAvailable($available) {
148
        $this->available = $available;
149
        return $this;
150
    }
151
152
    /**
153
     * Set the average.
154
     *
155
     * @param float $average The average.
156
     * @return RepositoryReport Returns this repository report.
157
     */
158
    public function setAverage($average) {
159
        $this->average = $average;
160
        return $this;
161
    }
162
163
    /**
164
     * Set the count.
165
     *
166
     * @param int $count The count.
167
     * @return RepositoryReport Returns this repository report.
168
     */
169
    public function setCount($count) {
170
        $this->count = $count;
171
        return $this;
172
    }
173
174
    /**
175
     * Set the entity.
176
     *
177
     * @param string $entity The entity.
178
     * @return RepositoryReport Returns this repository report.
179
     */
180
    public function setEntity($entity) {
181
        $this->entity = $entity;
182
        return $this;
183
    }
184
185
    /**
186
     * Set the field.
187
     *
188
     * @param string $field The field.
189
     * @return RepositoryReport Returns this repository report.
190
     */
191
    public function setField($field) {
192
        $this->field = $field;
193
        return $this;
194
    }
195
196
    /**
197
     * Set the maximum.
198
     *
199
     * @param int $maximum The maximum.
200
     * @return RepositoryReport Returns this repository report.
201
     */
202
    public function setMaximum($maximum) {
203
        $this->maximum = $maximum;
204
        return $this;
205
    }
206
207
    /**
208
     * Set the minimum.
209
     *
210
     * @param int $minimum The minimum.
211
     * @return RepositoryReport Returns this repository report.
212
     */
213
    public function setMinimum($minimum) {
214
        $this->minimum = $minimum;
215
        return $this;
216
    }
217
}
218