ProcessedFileList::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
crap 2
1
<?php
2
3
namespace PHPSemVerCheckerGit;
4
5
use PHPSemVerChecker\Scanner\Scanner;
6
7
class ProcessedFileList
8
{
9
    /**
10
     * @var int
11
     */
12
    private $unfilteredCount;
13
14
    /**
15
     * @var int
16
     */
17
    private $filteredCount;
18
19
    /**
20
     * @var string[]
21
     */
22
    private $filtered;
23
24
    /**
25
     * @var string[]
26
     */
27
    private $unfiltered;
28
29
    /**
30
     * @var \PHPSemVerChecker\Scanner\Scanner
31
     */
32
    private $scanner;
33
34
    /**
35
     * ProcessedFileList constructor.
36
     * @param string[] $unfiltered
37
     * @param string[] $filtered
38
     * @param \PHPSemVerChecker\Scanner\Scanner $scanner
39
     */
40
    public function __construct(array $unfiltered, array $filtered, Scanner $scanner)
41
    {
42
        $this->unfilteredCount = count($unfiltered);
43
        $this->filteredCount = count($filtered);
44
        $this->filtered = $filtered;
45
        $this->unfiltered = $unfiltered;
46
        $this->scanner = $scanner;
47
    }
48
49
    /**
50
     * @return \PHPSemVerChecker\Scanner\Scanner
51
     */
52
    public function getScanner()
53
    {
54
        return $this->scanner;
55
    }
56
57
    /**
58
     * @return string[]
59
     */
60
    public function getFiltered()
61
    {
62
        return $this->filtered;
63
    }
64
65
    /**
66
     * @return int
67
     */
68
    public function getFilteredCount()
69
    {
70
        return $this->filteredCount;
71
    }
72
73
    /**
74
     * @return int
75
     */
76
    public function getUnfilteredCount()
77
    {
78
        return $this->unfilteredCount;
79
    }
80
81
    /**
82
     * @return string[]
83
     */
84
    public function getUnfiltered()
85
    {
86
        return $this->unfiltered;
87
    }
88
}
89