abstract class AbstractFileExtractor

Base class used by classes that extract translation messages from files.

Methods

array
extractFiles(string|array $resource)

No description

bool
isFile(string $file)

No description

bool
canBeExtracted(string $file)

No description

array
extractFromDirectory(string|array $resource)

No description

Details

at line 28
protected array extractFiles(string|array $resource)

Parameters

string|array $resource Files, a file or a directory

Return Value

array

at line 63
protected bool isFile(string $file)

Parameters

string $file

Return Value

bool

Exceptions

InvalidArgumentException

at line 77
abstract protected bool canBeExtracted(string $file)

Parameters

string $file

Return Value

bool

at line 84
abstract protected array extractFromDirectory(string|array $resource)

Parameters

string|array $resource Files, a file or a directory

Return Value

array files to be extracted