FileProcessedEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 21
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getFile() 0 3 1
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