PHP 클래스 Eloquent\Pathogen\FileSystem\Factory\AbstractFileSystemPathFactory

상속: implements Eloquent\Pathogen\FileSystem\Factory\FileSystemPathFactoryInterface
파일 보기 프로젝트 열기: eloquent/pathogen

공개 메소드들

메소드 설명
__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.