| Total Complexity | 3 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 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 |
||
| 46 | } |
||
| 47 | } |
||
| 48 |