| Total Complexity | 5 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class CodebaseDirectory |
||
| 13 | { |
||
| 14 | /** @var SplFileInfo */ |
||
| 15 | private $directory; |
||
| 16 | |||
| 17 | 63 | public static function from(string $path): CodebaseDirectory |
|
| 20 | } |
||
| 21 | |||
| 22 | 54 | public function absolutePath(): string |
|
| 23 | { |
||
| 24 | 54 | return $this->directory->getRealPath(); |
|
| 25 | } |
||
| 26 | |||
| 27 | 63 | private function __construct(string $path) |
|
| 30 | 54 | } |
|
| 31 | |||
| 32 | 63 | private function setDirectory(SplFileInfo $path): void |
|
| 40 |