original_string: protected function addFunctions($functions, $fileDescriptor)
      {
          foreach ($functions as $function) {
              $functionDescriptor = $this->getBuilder()->buildDescriptor($function);
              if ($functionDescriptor) {
                  $functionDescriptor->setLocation($fileDescriptor, $function->getLineNumber());
                  if (count($functionDescriptor->getTags()->get('package', new Collection())) == 0) {
                      $functionDescriptor->getTags()
                          ->set('package', $fileDescriptor->getTags()->get('package', new Collection()));
                  }
  
                  $fileDescriptor->getFunctions()->set(
                      $functionDescriptor->getFullyQualifiedStructuralElementName(),
                      $functionDescriptor
                  );
              }
          }
      }
code: protected function addFunctions($functions, $fileDescriptor)
      {
          foreach ($functions as $function) {
              $functionDescriptor = $this->getBuilder()->buildDescriptor($function);
              if ($functionDescriptor) {
                  $functionDescriptor->setLocation($fileDescriptor, $function->getLineNumber());
                  if (count($functionDescriptor->getTags()->get('package', new Collection())) == 0) {
                      $functionDescriptor->getTags()
                          ->set('package', $fileDescriptor->getTags()->get('package', new Collection()));
                  }
  
                  $fileDescriptor->getFunctions()->set(
                      $functionDescriptor->getFullyQualifiedStructuralElementName(),
                      $functionDescriptor
                  );
              }
          }
      }
code_tokens: protected function addFunctions ( $ functions , $ fileDescriptor ) { foreach ( $ functions as $ function ) { $ functionDescriptor = $ this -> getBuilder ( ) -> buildDescriptor ( $ function ) ; if ( $ functionDescriptor ) { $ functionDescriptor -> setLocation ( $ fileDescriptor , $ function -> getLineNumber ( ) ) ; if ( count ( $ functionDescriptor -> getTags ( ) -> get ( 'package' , new Collection ( ) ) ) == 0 ) { $ functionDescriptor -> getTags ( ) -> set ( 'package' , $ fileDescriptor -> getTags ( ) -> get ( 'package' , new Collection ( ) ) ) ; } $ fileDescriptor -> getFunctions ( ) -> set ( $ functionDescriptor -> getFullyQualifiedStructuralElementName ( ) , $ functionDescriptor ) ; } } }
docstring: Registers the child functions with the generated File Descriptor.
  
  @param FunctionReflector[] $functions
  @param FileDescriptor      $fileDescriptor
  
  @return void
docstring_tokens: Registers the child functions with the generated File Descriptor .