$elementCount
$elementCount : integer
Analyzes a Project Descriptor and collects key information.
This class can be used by external tools to analyze the Project Descriptor and collect key information from it such as the total number of elements per type of Descriptor, the number of top level namespaces or the number of parent classes that could not be interpreted by the Compiler passes.
analyze(\phpDocumentor\Descriptor\ProjectDescriptor $projectDescriptor) : void
Analyzes the given project descriptor and populates this object's properties.
\phpDocumentor\Descriptor\ProjectDescriptor | $projectDescriptor |
addElementToCounter(array $classCounters, \phpDocumentor\Descriptor\DescriptorAbstract $element) : array
Increments the counter for element's class in the class counters.
array | $classCounters | |
\phpDocumentor\Descriptor\DescriptorAbstract | $element |
incrementUnresolvedParentCounter(\phpDocumentor\Descriptor\DescriptorAbstract $element)
Checks whether the given element is a class and if its parent could not be resolved; increment the counter.
\phpDocumentor\Descriptor\DescriptorAbstract | $element |
findAllElements(\phpDocumentor\Descriptor\ProjectDescriptor $projectDescriptor) : array<mixed,\phpDocumentor\Descriptor\DescriptorAbstract>
Returns all elements from the project descriptor.
\phpDocumentor\Descriptor\ProjectDescriptor | $projectDescriptor |