Directory
in package
Table of Contents
Properties
- $path : string
Methods
- __construct() : mixed
- asString() : string
- child() : Directory
- ensureExists() : void
- exists() : bool
- file() : Filename
- getRelativePathTo() : string
- hasChild() : bool
- isWritable() : bool
- withAbsolutePath() : Directory
- ensureIsDirectory() : mixed
- ensureValidMode() : mixed
Properties
$path
private
string
$path
Methods
__construct()
public
__construct(string $path) : mixed
Parameters
- $path : string
asString()
public
asString() : string
Return values
stringchild()
public
child(string $child) : Directory
Parameters
- $child : string
Return values
DirectoryensureExists()
public
ensureExists([int $mode = 0755 ]) : void
Parameters
- $mode : int = 0755
Tags
exists()
public
exists() : bool
Return values
boolfile()
public
file(string $filename) : Filename
Parameters
- $filename : string
Return values
FilenamegetRelativePathTo()
public
getRelativePathTo(Directory $directory) : string
Parameters
- $directory : Directory
Return values
stringhasChild()
public
hasChild(string $child) : bool
Parameters
- $child : string
Return values
boolisWritable()
public
isWritable() : bool
Return values
boolwithAbsolutePath()
public
withAbsolutePath() : Directory
Return values
DirectoryensureIsDirectory()
private
ensureIsDirectory(string $path) : mixed
Parameters
- $path : string
Tags
ensureValidMode()
private
ensureValidMode(int $mode) : mixed
Parameters
- $mode : int