class SourceCollector

Properties

protected SourceInterface[] $sources

Methods

__construct(array $allowedSourceTypes = [])

No description

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

No description

addString(Closure $callback)

No description

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

No description

array
getSources()

No description

Details

__construct(array $allowedSourceTypes = [])

Parameters

array $allowedSourceTypes

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

Parameters

string $file
string $extensionId

Return Value

SourceCollector

SourceCollector addString(Closure $callback)

Parameters

Closure $callback

Return Value

SourceCollector

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

Parameters

string $directory
string $extensionId

Return Value

SourceCollector

array getSources()

Return Value

array

protected SourceInterface validateSourceType(SourceInterface $source)

Parameters

SourceInterface $source

Return Value

SourceInterface