File::getDisplayPath()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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