Sorting Photos By Date

Sorter
in package

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

Constants

PERMISSIONS

private mixed PERMISSIONS = 0777

Properties

$catalogUnsortedPhotos

private string $catalogUnsortedPhotos

$copyToDirectory

private string $copyToDirectory

Methods

__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

getFilePath()

private getFilePath(string $fileName) : string
Parameters
$fileName : string
Return values
string

getFiles()

private getFiles() : array<string|int, mixed>
Tags
psalm-return

array<int, string>

Return values
array<string|int, mixed>

makeDirIfNotExist()

private makeDirIfNotExist(string $dir) : void
Parameters
$dir : string
Return values
void

Search results