Completed
Push — master ( a795aa...2533ab )
by Bill
16s
created

File::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php declare(strict_types = 1);
2
3
namespace Churn\Values;
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 array $fileData Raw file data.
22
     */
23
    public function __construct(array $fileData)
24
    {
25
        $this->fullPath = $fileData['fullPath'];
26
        $this->displayPath = $fileData['displayPath'];
27
    }
28
29
    /**
30
     * Get the full path of the file.
31
     * @return string
32
     */
33
    public function getFullPath(): string
34
    {
35
        return $this->fullPath;
36
    }
37
38
    /**
39
     * Get the display path of the file.
40
     * @return string
41
     */
42
    public function getDisplayPath(): string
43
    {
44
        return $this->displayPath;
45
    }
46
}
47