Table of Contents
-
PERMISSIONS
= 0777
-
$catalogUnsortedPhotos
: string
-
$copyToDirectory
: string
-
__construct()
: mixed
-
process()
: bool
-
checkPermissionsDirAndIfNotAdd()
: void
-
copyFile()
: void
-
getFilePath()
: string
-
getFiles()
: array<string|int, mixed>
-
makeDirIfNotExist()
: void
PERMISSIONS
private
mixed
PERMISSIONS
= 0777
$catalogUnsortedPhotos
private
string
$catalogUnsortedPhotos
$copyToDirectory
private
string
$copyToDirectory
__construct()
public
__construct(string $catalogUnsortedPhotos, string $copyToDirectory) : mixed
Parameters
-
$catalogUnsortedPhotos
: string
-
-
$copyToDirectory
: string
-
Return values
mixed
—
process()
public
process() : bool
Return values
bool
—
checkPermissionsDirAndIfNotAdd()
private
checkPermissionsDirAndIfNotAdd(string $dir) : void
Parameters
-
$dir
: string
-
Return values
void
—
copyFile()
private
copyFile(FileInterface $file, string $sourceFile) : void
Parameters
-
$file
: FileInterface
-
-
$sourceFile
: string
-
Return values
void
—
getFilePath()
private
getFilePath(string $fileName) : string
Parameters
-
$fileName
: string
-
Return values
string
—
getFiles()
private
getFiles() : array<string|int, mixed>
-
psalm-return
-
Return values
array<string|int, mixed>
—
makeDirIfNotExist()
private
makeDirIfNotExist(string $dir) : void
Parameters
-
$dir
: string
-
Return values
void
—