Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 6 |
|
0.00% |
0 / 4 |
CRAP | |
0.00% |
0 / 1 |
ContributionInfo | |
0.00% |
0 / 6 |
|
0.00% |
0 / 4 |
20 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
getNumLocalEdits | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getNumRecentEdits | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getNumDeletedEdits | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\IPInfo\Info; |
4 | |
5 | class ContributionInfo { |
6 | private int $numLocalEdits; |
7 | |
8 | private int $numRecentEdits; |
9 | private int $numDeletedEdits; |
10 | |
11 | public function __construct( |
12 | int $numLocalEdits = 0, |
13 | int $numRecentEdits = 0, |
14 | int $numDeletedEdits = 0 |
15 | ) { |
16 | $this->numLocalEdits = $numLocalEdits; |
17 | $this->numRecentEdits = $numRecentEdits; |
18 | $this->numDeletedEdits = $numDeletedEdits; |
19 | } |
20 | |
21 | public function getNumLocalEdits(): int { |
22 | return $this->numLocalEdits; |
23 | } |
24 | |
25 | public function getNumRecentEdits(): int { |
26 | return $this->numRecentEdits; |
27 | } |
28 | |
29 | public function getNumDeletedEdits(): int { |
30 | return $this->numDeletedEdits; |
31 | } |
32 | } |