Completed
Pull Request — master (#248)
by Fabien
02:43
created

File   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Importance

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

3 Methods

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