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
                );
            }
        }
    }
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
                );
            }
        }
    }
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 ) ; } } }
Registers the child interfaces with the generated File Descriptor.

@param InterfaceReflector[] $interfaces
@param FileDescriptor   $fileDescriptor

@return void
Registers the child interfaces with the generated File Descriptor .