Completed
Push — develop ( 373768...b82813 )
by Mike
05:50
created

PreParsingEvent::setFileCount()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 6
rs 10
c 0
b 0
f 0
ccs 3
cts 3
cp 1
crap 1
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * This file is part of phpDocumentor.
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @author    Mike van Riel <[email protected]>
11
 * @copyright 2010-2019 Mike van Riel / Naenius (http://www.naenius.com)
12
 * @license   http://www.opensource.org/licenses/mit-license.php MIT
13
 * @link      http://phpdoc.org
14
 */
15
16
namespace phpDocumentor\Parser\Event;
17
18
use phpDocumentor\Event\EventAbstract;
19
20
/**
21
 * Event thrown before the parsing of an individual file.
22
 */
23
final class PreParsingEvent extends EventAbstract
24
{
25
    /** @var integer */
26
    protected $fileCount;
27
28 1
    public function setFileCount(int $fileCount): self
29
    {
30 1
        $this->fileCount = $fileCount;
31
32 1
        return $this;
33
    }
34
35 1
    public function getFileCount(): int
36
    {
37 1
        return $this->fileCount;
38
    }
39
}
40