Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| Path | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Cosray\Config; |
| 6 | |
| 7 | final class Path |
| 8 | { |
| 9 | public function __construct( |
| 10 | private readonly \Cosray\Config $config, |
| 11 | ) {} |
| 12 | |
| 13 | public string $root { |
| 14 | get => $this->config->get('path.root'); |
| 15 | } |
| 16 | |
| 17 | public string $public { |
| 18 | get => $this->config->get('path.public'); |
| 19 | } |
| 20 | |
| 21 | public string $assets { |
| 22 | get => $this->config->get('path.assets'); |
| 23 | } |
| 24 | |
| 25 | public string $cache { |
| 26 | get => $this->config->get('path.cache'); |
| 27 | } |
| 28 | |
| 29 | public string $views { |
| 30 | get => $this->config->get('path.views'); |
| 31 | } |
| 32 | } |