Total Complexity | 5 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | final class File extends Base |
||
20 | { |
||
21 | /** |
||
22 | * Returns a directory instance of its location |
||
23 | * |
||
24 | * @return \SebastianFeldmann\Camino\Path\Directory |
||
25 | */ |
||
26 | 1 | public function getDirectory(): Directory |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * Is the file located in a given directory |
||
33 | * |
||
34 | * @param \SebastianFeldmann\Camino\Path\Directory $directory |
||
35 | * @return bool |
||
36 | */ |
||
37 | 2 | public function isInDirectory(Directory $directory): bool |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * Factory method to create files that actually exist |
||
44 | * |
||
45 | * @param string $path |
||
46 | * @return \SebastianFeldmann\Camino\Path\File |
||
47 | */ |
||
48 | 3 | public static function create(string $path): File |
|
57 |