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

File   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 42
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getFullPath() 0 4 1
A getDisplayPath() 0 4 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