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
|
|
|
use WBW\Bundle\CoreBundle\Model\Attribute\FloatAverageTrait; |
15
|
|
|
use WBW\Bundle\CoreBundle\Model\Attribute\IntegerCountTrait; |
16
|
|
|
use WBW\Bundle\CoreBundle\Model\Attribute\IntegerMaximumTrait; |
17
|
|
|
use WBW\Bundle\CoreBundle\Model\Attribute\IntegerMinimumTrait; |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* Repository report. |
21
|
|
|
* |
22
|
|
|
* @author webeweb <https://github.com/webeweb/> |
23
|
|
|
* @package WBW\Bundle\CoreBundle\Model |
24
|
|
|
*/ |
25
|
|
|
class RepositoryReport { |
26
|
|
|
|
27
|
|
|
use FloatAverageTrait; |
28
|
|
|
use IntegerCountTrait; |
29
|
|
|
use IntegerMaximumTrait; |
30
|
|
|
use IntegerMinimumTrait; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* Available |
34
|
|
|
* |
35
|
|
|
* @var int |
36
|
|
|
*/ |
37
|
|
|
private $available; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* Column. |
41
|
|
|
* |
42
|
|
|
* @var string |
43
|
|
|
*/ |
44
|
|
|
private $column; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* Entity. |
48
|
|
|
* |
49
|
|
|
* @var string |
50
|
|
|
*/ |
51
|
|
|
private $entity; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* Field. |
55
|
|
|
* |
56
|
|
|
* @var string |
57
|
|
|
*/ |
58
|
|
|
private $field; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* Table. |
62
|
|
|
* |
63
|
|
|
* @var string |
64
|
|
|
*/ |
65
|
|
|
private $table; |
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* Constructor. |
69
|
|
|
*/ |
70
|
|
|
public function __construct() { |
71
|
|
|
// NOTHING TO DO. |
72
|
|
|
} |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* Get the available. |
76
|
|
|
* |
77
|
|
|
* @return int Returns the available. |
78
|
|
|
*/ |
79
|
|
|
public function getAvailable() { |
80
|
|
|
return $this->available; |
81
|
|
|
} |
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* Get the column. |
85
|
|
|
* |
86
|
|
|
* @return string Returns the column. |
87
|
|
|
*/ |
88
|
|
|
public function getColumn() { |
89
|
|
|
return $this->column; |
90
|
|
|
} |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* Get the entity. |
94
|
|
|
* |
95
|
|
|
* @return string Returns the entity. |
96
|
|
|
*/ |
97
|
|
|
public function getEntity() { |
98
|
|
|
return $this->entity; |
99
|
|
|
} |
100
|
|
|
|
101
|
|
|
/** |
102
|
|
|
* Get the field. |
103
|
|
|
* |
104
|
|
|
* @return string Returns the field. |
105
|
|
|
*/ |
106
|
|
|
public function getField() { |
107
|
|
|
return $this->field; |
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
/** |
111
|
|
|
* Get the table. |
112
|
|
|
* |
113
|
|
|
* @return string Returns the table. |
114
|
|
|
*/ |
115
|
|
|
public function getTable() { |
116
|
|
|
return $this->table; |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* Set the available. |
121
|
|
|
* |
122
|
|
|
* @param int $available The available. |
123
|
|
|
* @return RepositoryReport Returns this repository report. |
124
|
|
|
*/ |
125
|
|
|
public function setAvailable($available) { |
126
|
|
|
$this->available = $available; |
127
|
|
|
return $this; |
128
|
|
|
} |
129
|
|
|
|
130
|
|
|
/** |
131
|
|
|
* Set the column. |
132
|
|
|
* |
133
|
|
|
* @param string $column The column. |
134
|
|
|
* @return RepositoryReport Returns this repository report. |
135
|
|
|
*/ |
136
|
|
|
public function setColumn($column) { |
137
|
|
|
$this->column = $column; |
138
|
|
|
return $this; |
139
|
|
|
} |
140
|
|
|
|
141
|
|
|
/** |
142
|
|
|
* Set the entity. |
143
|
|
|
* |
144
|
|
|
* @param string $entity The entity. |
145
|
|
|
* @return RepositoryReport Returns this repository report. |
146
|
|
|
*/ |
147
|
|
|
public function setEntity($entity) { |
148
|
|
|
$this->entity = $entity; |
149
|
|
|
return $this; |
150
|
|
|
} |
151
|
|
|
|
152
|
|
|
/** |
153
|
|
|
* Set the field. |
154
|
|
|
* |
155
|
|
|
* @param string $field The field. |
156
|
|
|
* @return RepositoryReport Returns this repository report. |
157
|
|
|
*/ |
158
|
|
|
public function setField($field) { |
159
|
|
|
$this->field = $field; |
160
|
|
|
return $this; |
161
|
|
|
} |
162
|
|
|
|
163
|
|
|
/** |
164
|
|
|
* Set the table. |
165
|
|
|
* |
166
|
|
|
* @param string $table The table. |
167
|
|
|
* @return RepositoryReport Returns this repository report. |
168
|
|
|
*/ |
169
|
|
|
public function setTable($table) { |
170
|
|
|
$this->table = $table; |
171
|
|
|
return $this; |
172
|
|
|
} |
173
|
|
|
} |
174
|
|
|
|