src/phpDocumentor/Descriptor/ProjectAnalyzer.php
public function analyze(ProjectDescriptor $projectDescriptor)
    {
        $this->unresolvedParentClassesCount = 0;

        $elementCounter = array();
        foreach ($this->findAllElements($projectDescriptor) as $element) {
            $elementCounter = $this->addElementToCounter($elementCounter, $element);
            $this->incrementUnresolvedParentCounter($element);
        }

        $this->descriptorCountByType  = $elementCounter;
        $this->fileCount              = count($projectDescriptor->getFiles());
        $this->topLevelNamespaceCount = count($projectDescriptor->getNamespace()->getChildren());
    }
public function analyze(ProjectDescriptor $projectDescriptor)
    {
        $this->unresolvedParentClassesCount = 0;

        $elementCounter = array();
        foreach ($this->findAllElements($projectDescriptor) as $element) {
            $elementCounter = $this->addElementToCounter($elementCounter, $element);
            $this->incrementUnresolvedParentCounter($element);
        }

        $this->descriptorCountByType  = $elementCounter;
        $this->fileCount              = count($projectDescriptor->getFiles());
        $this->topLevelNamespaceCount = count($projectDescriptor->getNamespace()->getChildren());
    }
public function analyze ( ProjectDescriptor $ projectDescriptor ) { $ this -> unresolvedParentClassesCount = 0 ; $ elementCounter = array ( ) ; foreach ( $ this -> findAllElements ( $ projectDescriptor ) as $ element ) { $ elementCounter = $ this -> addElementToCounter ( $ elementCounter , $ element ) ; $ this -> incrementUnresolvedParentCounter ( $ element ) ; } $ this -> descriptorCountByType = $ elementCounter ; $ this -> fileCount = count ( $ projectDescriptor -> getFiles ( ) ) ; $ this -> topLevelNamespaceCount = count ( $ projectDescriptor -> getNamespace ( ) -> getChildren ( ) ) ; }
Analyzes the given project descriptor and populates this object's properties.

@param ProjectDescriptor $projectDescriptor

@return void
Analyzes the given project descriptor and populates this object s properties .