| Total Complexity | 5 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class Directory |
||
| 6 | { |
||
| 7 | /** @var string */ |
||
| 8 | private $directory; |
||
| 9 | |||
| 10 | public function __construct(string $directory) |
||
| 11 | { |
||
| 12 | $this->ensureIsDirectory($directory); |
||
| 13 | $this->directory = rtrim($directory, \DIRECTORY_SEPARATOR); |
||
| 14 | } |
||
| 15 | |||
| 16 | public function asString(): string |
||
| 17 | { |
||
| 18 | return $this->directory; |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getFullSubpathAsString(string $subPath): string |
||
| 24 | } |
||
| 25 | |||
| 26 | private function ensureIsDirectory(string $directory): void |
||
| 33 |