Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
BlockInfo
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getNumActiveBlocks
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace MediaWiki\IPInfo\Info;
4
5class BlockInfo {
6
7    private int $numActiveBlocks;
8
9    public function __construct( int $numActiveBlocks = 0 ) {
10        $this->numActiveBlocks = $numActiveBlocks;
11    }
12
13    public function getNumActiveBlocks(): int {
14        return $this->numActiveBlocks;
15    }
16}