AbstractFileExtractor
in package
Base class used by classes that extract translation messages from files.
Tags
Table of Contents
- canBeExtracted() : bool
- extractFiles() : iteratable<string|int, mixed>
- extractFromDirectory() : iteratable<string|int, mixed>
- isFile() : bool
- toSplFileInfo() : SplFileInfo
Methods
canBeExtracted()
protected
abstract canBeExtracted(string $file) : bool
Parameters
- $file : string
Return values
bool —extractFiles()
protected
extractFiles(string|iteratable<string|int, mixed> $resource) : iteratable<string|int, mixed>
Parameters
- $resource : string|iteratable<string|int, mixed>
-
Files, a file or a directory
Return values
iteratable<string|int, mixed> —extractFromDirectory()
protected
abstract extractFromDirectory(string|array<string|int, mixed> $resource) : iteratable<string|int, mixed>
Parameters
- $resource : string|array<string|int, mixed>
-
Files, a file or a directory
Return values
iteratable<string|int, mixed> —files to be extracted
isFile()
protected
isFile(string $file) : bool
Parameters
- $file : string
Tags
Return values
bool —toSplFileInfo()
private
toSplFileInfo(string $file) : SplFileInfo
Parameters
- $file : string