PHP Класс Eloquent\Pathogen\FileSystem\Factory\AbstractFileSystemPathFactory

Наследование: implements Eloquent\Pathogen\FileSystem\Factory\FileSystemPathFactoryInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Eloquent\Pathogen\Factory\PathFactoryInterface $unixFactory = null, Eloquent\Pathogen\Factory\PathFactoryInterface $windowsFactory = null, Icecave\Isolator\Isolator $isolator = null ) Construct a new file system path factory.
createTemporaryDirectoryPath ( ) : Eloquent\Pathogen\FileSystem\AbsoluteFileSystemPathInterface Create a path representing the system temporary directory.
createTemporaryPath ( string | null $prefix = null ) : Eloquent\Pathogen\FileSystem\AbsoluteFileSystemPathInterface Create a path representing a suitable for use as the location for a new temporary file or directory.
createWorkingDirectoryPath ( ) : Eloquent\Pathogen\FileSystem\AbsoluteFileSystemPathInterface Create a path representing the current working directory.
unixFactory ( ) : Eloquent\Pathogen\Factory\PathFactoryInterface Get the path factory used for Unix paths.
windowsFactory ( ) : Eloquent\Pathogen\Factory\PathFactoryInterface Get the path factory used for Windows paths.

Защищенные методы

Метод Описание
factoryByPlatform ( ) : Eloquent\Pathogen\Factory\PathFactoryInterface Return the most appropriate path factory depending on the current platform.
isolator ( ) : Icecave\Isolator\Isolator Get the isolator.

Описание методов

__construct() публичный Метод

Construct a new file system path factory.
public __construct ( Eloquent\Pathogen\Factory\PathFactoryInterface $unixFactory = null, Eloquent\Pathogen\Factory\PathFactoryInterface $windowsFactory = null, Icecave\Isolator\Isolator $isolator = null )
$unixFactory Eloquent\Pathogen\Factory\PathFactoryInterface The path factory to use for Unix paths.
$windowsFactory Eloquent\Pathogen\Factory\PathFactoryInterface The path factory to use for Windows paths.
$isolator Icecave\Isolator\Isolator The isolator to use.

createTemporaryDirectoryPath() публичный Метод

Create a path representing the system temporary directory.
public createTemporaryDirectoryPath ( ) : Eloquent\Pathogen\FileSystem\AbsoluteFileSystemPathInterface
Результат Eloquent\Pathogen\FileSystem\AbsoluteFileSystemPathInterface A new path instance representing the system default temporary directory path.

createTemporaryPath() публичный Метод

This path is not guaranteed to be unused, but collisions are fairly unlikely.
public createTemporaryPath ( string | null $prefix = null ) : Eloquent\Pathogen\FileSystem\AbsoluteFileSystemPathInterface
$prefix string | null A string to use as a prefix for the path name.
Результат Eloquent\Pathogen\FileSystem\AbsoluteFileSystemPathInterface A new path instance representing the new temporary path.

createWorkingDirectoryPath() публичный Метод

Create a path representing the current working directory.
public createWorkingDirectoryPath ( ) : Eloquent\Pathogen\FileSystem\AbsoluteFileSystemPathInterface
Результат Eloquent\Pathogen\FileSystem\AbsoluteFileSystemPathInterface A new path instance representing the current working directory path.

factoryByPlatform() защищенный Метод

Return the most appropriate path factory depending on the current platform.
protected factoryByPlatform ( ) : Eloquent\Pathogen\Factory\PathFactoryInterface
Результат Eloquent\Pathogen\Factory\PathFactoryInterface The most appropriate path factory.

isolator() защищенный Метод

Get the isolator.
protected isolator ( ) : Icecave\Isolator\Isolator
Результат Icecave\Isolator\Isolator The isolator.

unixFactory() публичный Метод

Get the path factory used for Unix paths.
public unixFactory ( ) : Eloquent\Pathogen\Factory\PathFactoryInterface
Результат Eloquent\Pathogen\Factory\PathFactoryInterface The path factory used for Unix paths.

windowsFactory() публичный Метод

Get the path factory used for Windows paths.
public windowsFactory ( ) : Eloquent\Pathogen\Factory\PathFactoryInterface
Результат Eloquent\Pathogen\Factory\PathFactoryInterface The path factory used for Windows paths.