FileManager
in package
implements
FileManagerInterface
This is a file manager class for generating destinations
Tags
Interfaces, Classes, Traits and Enums
- FileManagerInterface
- This is a FileManagerInterface, all file manager classes must implmenting this interface
Table of Contents
- $destPath : string
- $dests : array<string|int, string>
- $extension : mixed
- $format : string
- $prefix : string
- __construct() : mixed
- construct
- generate() : string
- genearte
- getDestinations() : array<string|int, string>
- get destinations
Properties
$destPath
private
string
$destPath
$dests
private
array<string|int, string>
$dests
= []
$extension
private
mixed
$extension
$format
private
string
$format
$prefix
private
string
$prefix
= 'file_'
Methods
__construct()
construct
public
__construct(string $destPath, string $extension[, string $prefix = 'file_' ][, int $sequenceLength = 3 ]) : mixed
Parameters
- $destPath : string
- $extension : string
- $prefix : string = 'file_'
-
defaut: file_
- $sequenceLength : int = 3
-
default: 3
Return values
mixed —generate()
genearte
public
generate() : string
Return values
string —getDestinations()
get destinations
public
getDestinations() : array<string|int, string>