Completed
Push — develop ( 547684...1a58bc )
by Paul
01:54
created

Report::increaseParsedFileNumber()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * This file is part of PHPUnit Generator.
5
 *
6
 * (c) 2017-2018 Paul Thébaud <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE.md
9
 * file that was distributed with this source code.
10
 */
11
12
namespace PhpUnitGen\Report;
13
14
use PhpUnitGen\Report\ReportInterface\ReportInterface;
15
16
/**
17
 * Class Report.
18
 *
19
 * @author     Paul Thébaud <[email protected]>.
20
 * @copyright  2017-2018 Paul Thébaud <[email protected]>.
21
 * @license    https://opensource.org/licenses/MIT The MIT license.
22
 * @link       https://github.com/paul-thebaud/phpunit-generator
23
 * @since      Class available since Release 2.0.0.
24
 */
25
class Report implements ReportInterface
26
{
27
    /**
28
     * @var int $parsedFilesNumber The number of parsed files.
29
     */
30
    private $parsedFilesNumber = 0;
31
32
    /**
33
     * @var int $parsedDirectoriesNumber The number of parsed directories.
34
     */
35
    private $parsedDirectoriesNumber = 0;
36
37
    /**
38
     * @var int $ignoredErrorsNumber The number of errors that occurred during process.
39
     */
40
    private $ignoredErrorsNumber = 0;
41
42
    /**
43
     * {@inheritdoc}
44
     */
45
    public function increaseParsedFileNumber(): void
46
    {
47
        $this->parsedFilesNumber++;
48
    }
49
50
    /**
51
     * {@inheritdoc}
52
     */
53
    public function increaseParsedDirectoryNumber(): void
54
    {
55
        $this->parsedDirectoriesNumber++;
56
    }
57
58
    /**
59
     * {@inheritdoc}
60
     */
61
    public function increaseIgnoredErrorNumber(): void
62
    {
63
        $this->ignoredErrorsNumber++;
64
    }
65
66
    /**
67
     * {@inheritdoc}
68
     */
69
    public function getParsedFileNumber(): int
70
    {
71
        return $this->parsedFilesNumber;
72
    }
73
74
    /**
75
     * {@inheritdoc}
76
     */
77
    public function getParsedDirectoryNumber(): int
78
    {
79
        return $this->parsedDirectoriesNumber;
80
    }
81
82
    /**
83
     * {@inheritdoc}
84
     */
85
    public function getIgnoredErrorNumber(): int
86
    {
87
        return $this->ignoredErrorsNumber;
88
    }
89
}
90