original_string: 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());
      }
code: 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());
      }
code_tokens: 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 ( ) ) ; }
docstring: Analyzes the given project descriptor and populates this object's properties.
  
  @param ProjectDescriptor $projectDescriptor
  
  @return void
docstring_tokens: Analyzes the given project descriptor and populates this object s properties .