Lines
0.00%
0 / 2
Functions and Methods
0.00%
0 / 2
Classes and Traits
0.00%
0 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ProjectRoot | 0.00% | 0 / 2 | 0.00% | 0 / 2 | 6 | 0.00% | 0 / 1 | |||
| __construct | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | |||||
| resolvePath | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Stewart\Runtime\Config; | |
| 6 | ||
| 7 | use Symfony\Component\Filesystem\Path; | |
| 8 | ||
| 9 | final readonly class ProjectRoot | |
| 10 | { | |
| 11 | public function __construct(public string $path) {} | |
| 12 | ||
| 13 | public function resolvePath(string $path): string | |
| 14 | { | |
| 15 | return Path::makeAbsolute($path, $this->path); | |
| 16 | } | |
| 17 | } |