class SourceCollector

Properties

protected SourceInterface[] $sources

Methods

__construct(array $allowedSourceTypes = [])

No description

addFile(string $file, string|null $extensionId = null)

No description

addString(Closure $callback, string|null $key = null)

No description

addDirectory(string $directory, string|null $extensionId = null)

No description

array
getSources()

No description

Details

__construct(array $allowedSourceTypes = [])

Parameters

array $allowedSourceTypes

SourceCollector addFile(string $file, string|null $extensionId = null)

Parameters

string $file
string|null $extensionId

Return Value

SourceCollector

SourceCollector addString(Closure $callback, string|null $key = null)

Parameters

Closure $callback
string|null $key

Return Value

SourceCollector

SourceCollector addDirectory(string $directory, string|null $extensionId = null)

Parameters

string $directory
string|null $extensionId

Return Value

SourceCollector

array getSources()

Return Value

array

protected SourceInterface validateSourceType(SourceInterface $source)

Parameters

SourceInterface $source

Return Value

SourceInterface