API Documentation

FileFinder
in package

Tags
interal

This class is used internally by the framework and is not part of the public API, unless that is requested on GitHub with a valid use case.

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
string

expandCommaSeparatedValues()

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>
Return values
string

        
On this page

Search results