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