Passed
Push — master ( da7684...88d58f )
by BruceScrutinizer
02:01
created

ResultProcessedFileReadOnly   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 6
dl 0
loc 22
rs 10
c 1
b 1
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getFileName() 0 3 1
A getConflicts() 0 3 1
A __construct() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace NamespaceProtector\Result;
4
5
final class ResultProcessedFileReadOnly implements ResultProcessedFileInterface
6
{
7
    /** @var string  */
8
    private $file;
9
10
    /** @var array<ErrorResult> */
11
    private $conflicts = [];
12
13
    public function __construct(string $file)
14
    {
15
        $this->file = $file;
16
    }
17
18
    public function getFileName(): String
19
    {
20
        return $this->file;
21
    }
22
23
    /** @return array<ErrorResult> */
24
    public function getConflicts(): array
25
    {
26
        return $this->conflicts;
27
    }
28
}
29