AbstractTemporary
in package
AbstractYes
This is a simple Temporary implementation that other Temporary can inherit from.
Table of Contents
Properties
- $temporary : array<string|int, string>
Methods
- __destruct() : mixed
- addTemporary() : static
- Return an instance with the added temprary filename.
- clearTemporary() : static
- Clear temporary data.
- getRandomFilename() : string
- Retrieve a random temporary filename.
Properties
$temporary
private
array<string|int, string>
$temporary
= []
Methods
__destruct()
public
__destruct() : mixed
addTemporary()
Return an instance with the added temprary filename.
protected
addTemporary(string $Filename) : static
Parameters
- $Filename : string
-
The temporary filename.
Return values
staticclearTemporary()
Clear temporary data.
protected
clearTemporary() : static
Return values
staticgetRandomFilename()
Retrieve a random temporary filename.
protected
getRandomFilename(string $Namespace[, string $Extension = "tmp" ]) : string
Parameters
- $Namespace : string
-
The file namespace.
- $Extension : string = "tmp"
-
The file extension.