Filename
in package
Table of Contents
Properties
- $name : string
Methods
- __construct() : mixed
- asString() : string
- delete() : bool
- exists() : bool
- getDirectory() : Directory
- getRelativePathTo() : Filename
- isExecutable() : bool
- isLink() : bool
- isOlderThan() : bool
- isWritable() : bool
- putContent() : int
- read() : File
- renameTo() : Filename
- withAbsolutePath() : Filename
- withoutExtension() : Filename
- getBasename() : string
- getLastModified() : LastModifiedDate
Properties
$name
private
string
$name
Methods
__construct()
public
__construct(string $name) : mixed
Parameters
- $name : string
asString()
public
asString() : string
Return values
stringdelete()
public
delete() : bool
Return values
boolexists()
public
exists() : bool
Return values
boolgetDirectory()
public
getDirectory() : Directory
Return values
DirectorygetRelativePathTo()
public
getRelativePathTo(Directory $directory) : Filename
Parameters
- $directory : Directory
Return values
FilenameisExecutable()
public
isExecutable() : bool
Return values
boolisLink()
public
isLink() : bool
Return values
boolisOlderThan()
public
isOlderThan(DateTimeImmutable $date) : bool
Parameters
- $date : DateTimeImmutable
Return values
boolisWritable()
public
isWritable() : bool
Return values
boolputContent()
public
putContent(string $content) : int
Parameters
- $content : string
Return values
intread()
public
read() : File
Return values
FilerenameTo()
public
renameTo(string $newName) : Filename
Parameters
- $newName : string
Tags
Return values
FilenamewithAbsolutePath()
public
withAbsolutePath() : Filename
Return values
FilenamewithoutExtension()
public
withoutExtension() : Filename
Return values
FilenamegetBasename()
private
getBasename() : string
Return values
stringgetLastModified()
private
getLastModified() : LastModifiedDate