File   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 7
c 0
b 0
f 0
dl 0
loc 42
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getDisplayPath() 0 3 1
A getFullPath() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Churn\File;
6
7
/**
8
 * @internal
9
 */
10
final class File
11
{
12
    /**
13
     * The full path of the file.
14
     *
15
     * @var string
16
     */
17
    private $fullPath;
18
19
    /**
20
     * The display path of the file.
21
     *
22
     * @var string
23
     */
24
    private $displayPath;
25
26
    /**
27
     * File constructor.
28
     *
29
     * @param string $fullPath The full path of the file.
30
     * @param string $displayPath The display path of the file.
31
     */
32
    public function __construct(string $fullPath, string $displayPath)
33
    {
34
        $this->fullPath = $fullPath;
35
        $this->displayPath = $displayPath;
36
    }
37
38
    /**
39
     * Get the full path of the file.
40
     */
41
    public function getFullPath(): string
42
    {
43
        return $this->fullPath;
44
    }
45
46
    /**
47
     * Get the display path of the file.
48
     */
49
    public function getDisplayPath(): string
50
    {
51
        return $this->displayPath;
52
    }
53
}
54