FileProcessedEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace PhpNsFixer\Event;
6
7
use Symfony\Component\Finder\SplFileInfo;
8
9
final class FileProcessedEvent
10
{
11
    /**
12
     * @var SplFileInfo
13
     */
14
    private $file;
15
16
    /**
17
     * @param SplFileInfo $file
18
     */
19 6
    public function __construct(SplFileInfo $file)
20
    {
21 6
        $this->file = $file;
22 6
    }
23
24
    /**
25
     * @return SplFileInfo
26
     */
27 6
    public function getFile(): SplFileInfo
28
    {
29 6
        return $this->file;
30
    }
31
}
32