interface FileSystemPathFactoryInterface implements PathFactoryInterface
The interface implemented by path factories that deal with file system paths.
Methods
PathInterface |
create(string $path)
Creates a new path instance from its string representation. |
from PathFactoryInterface |
PathInterface |
createFromAtoms(mixed<string> $atoms, boolean|null $isAbsolute = null, boolean|null $hasTrailingSeparator = null)
Creates a new path instance from a set of path atoms. |
from PathFactoryInterface |
AbsoluteFileSystemPathInterface |
createWorkingDirectoryPath()
Create a path representing the current working directory. |
|
AbsoluteFileSystemPathInterface |
createTemporaryDirectoryPath()
Create a path representing the system temporary directory. |
|
AbsoluteFileSystemPathInterface |
createTemporaryPath(string|null $prefix = null)
Create a path representing a suitable for use as the location for a new temporary file or directory. |
Details
in PathFactoryInterface at line 30
public PathInterface
create(string $path)
Creates a new path instance from its string representation.
in PathFactoryInterface at line 43
public PathInterface
createFromAtoms(mixed<string> $atoms, boolean|null $isAbsolute = null, boolean|null $hasTrailingSeparator = null)
Creates a new path instance from a set of path atoms.
at line 27
public AbsoluteFileSystemPathInterface
createWorkingDirectoryPath()
Create a path representing the current working directory.
at line 34
public AbsoluteFileSystemPathInterface
createTemporaryDirectoryPath()
Create a path representing the system temporary directory.
at line 47
public AbsoluteFileSystemPathInterface
createTemporaryPath(string|null $prefix = null)
Create a path representing a suitable for use as the location for a new temporary file or directory.
This path is not guaranteed to be unused, but collisions are fairly unlikely.