FileFinder
in package
Tags
Table of Contents
Methods
- handle() : Collection<int, string>
- buildFileExtensionPattern() : string
- expandCommaSeparatedValues() : array<string|int, mixed>
- normalizeExtensionForRegexPattern() : string
Methods
handle()
public
static handle(string $directory[, array<string|int, string>|string|false $matchExtensions = false ][, bool $recursive = false ]) : Collection<int, string>
Parameters
- $directory : string
- $matchExtensions : array<string|int, string>|string|false = false
- $recursive : bool = false
Return values
Collection<int, string>buildFileExtensionPattern()
protected
static buildFileExtensionPattern(array<string|int, string> $extensions) : string
Parameters
- $extensions : array<string|int, string>
Return values
stringexpandCommaSeparatedValues()
private
static expandCommaSeparatedValues(array<string|int, string> $extensions) : array<string|int, mixed>
Parameters
- $extensions : array<string|int, string>
Return values
array<string|int, mixed>normalizeExtensionForRegexPattern()
private
static normalizeExtensionForRegexPattern(array<string|int, string> $extensions) : string
Parameters
- $extensions : array<string|int, string>