| Total Complexity | 3 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 |
||
| 52 | } |
||
| 53 | } |
||
| 54 |