| Methods |
public
|
__construct(CollectorData|LazyCollectedData $collectedData, bool $onlyFiles, ?CollectedDataNodeReads $reads = null)
Parameters
| $collectedData |
Array of attributes
|
Overrides
|
#
|
public
|
get<TCollector is Collector<Node, TValue>, TValue>(class-string<TCollector> $collectorType): array<string, list<TValue>>
|
#
|
public
|
iterate<TCollector is Collector<Node, TValue>, TValue>(
class-string<TCollector> $collectorType,
): iterable<string, list<TValue>>
Like get(), but yields the data of one analysed file at a time instead of returning all of it.
On a large project, a rule that processes each file's data and keeps only what it derives from
it does not hold the whole collected data in memory.
Like get(), but yields the data of one analysed file at a time instead of returning all of it.
On a large project, a rule that processes each file's data and keeps only what it derives from
it does not hold the whole collected data in memory.
Every call reads the data again.
|
#
|
public
|
isOnlyFilesAnalysis(): bool
Indicates that only files were passed to the analyser, not directory paths.
Indicates that only files were passed to the analyser, not directory paths.
True being returned strongly suggests that it's a partial analysis, not full project analysis.
|
#
|
public
|
getType(): string
Gets the type of the node.
Gets the type of the node.
Returns
Implements
|
#
|
public
|
getSubNodeNames(): array{}
Gets the names of the sub nodes.
Gets the names of the sub nodes.
Returns
Implements
|
#
|