22
33namespace Aternos \Codex \Minecraft \Analysis \Solution \Folder ;
44
5- use Aternos \Codex \Minecraft \Analysis \Solution \File \PathType ;
5+ use Aternos \Codex \Minecraft \Analysis \Solution \File \FilePathType ;
66use Aternos \Codex \Minecraft \Analysis \Solution \MinecraftSolution ;
77
88abstract class FolderSolution extends MinecraftSolution
99{
1010 /**
1111 * @param string $path The relative path (without a starting slash) or absolute path to the folder.
1212 * If the path is relative, it will be treated as relative to the Minecraft server root directory.
13- * @param PathType $type Is the path relative or absolute?
13+ * @param FilePathType $type Is the path relative or absolute?
1414 */
1515 public function __construct (
1616 protected string $ path ,
17- protected PathType $ type = PathType ::RELATIVE
17+ protected FilePathType $ type = FilePathType ::RELATIVE
1818 )
1919 {
2020 }
@@ -29,7 +29,7 @@ public function __construct(
2929 public function setRelativePath (string $ path ): static
3030 {
3131 $ this ->path = $ path ;
32- $ this ->type = PathType ::RELATIVE ;
32+ $ this ->type = FilePathType ::RELATIVE ;
3333 return $ this ;
3434 }
3535
@@ -42,7 +42,7 @@ public function setRelativePath(string $path): static
4242 public function setAbsolutePath (string $ path ): static
4343 {
4444 $ this ->path = $ path ;
45- $ this ->type = PathType ::ABSOLUTE ;
45+ $ this ->type = FilePathType ::ABSOLUTE ;
4646 return $ this ;
4747 }
4848
@@ -60,9 +60,9 @@ public function getPath(): string
6060 /**
6161 * Get the type of the path (absolute or relative)
6262 *
63- * @return PathType
63+ * @return FilePathType
6464 */
65- public function getType (): PathType
65+ public function getType (): FilePathType
6666 {
6767 return $ this ->type ;
6868 }
@@ -75,7 +75,7 @@ public function getType(): PathType
7575 */
7676 public function isRelative (): bool
7777 {
78- return $ this ->getType () === PathType ::RELATIVE ;
78+ return $ this ->getType () === FilePathType ::RELATIVE ;
7979 }
8080
8181 /**
@@ -85,6 +85,6 @@ public function isRelative(): bool
8585 */
8686 public function isAbsolutePath (): bool
8787 {
88- return $ this ->getType () === PathType ::ABSOLUTE ;
88+ return $ this ->getType () === FilePathType ::ABSOLUTE ;
8989 }
9090}
0 commit comments