/**
  * Maps the fields to the reflector to the descriptor.
  *
  * @param MethodReflector  $reflector
  * @param MethodDescriptor $descriptor
  *
  * @return void
  */
 protected function mapReflectorToDescriptor($reflector, $descriptor)
 {
     $descriptor->setFullyQualifiedStructuralElementName($reflector->getName() . '()');
     $descriptor->setName($reflector->getShortName());
     $descriptor->setVisibility($reflector->getVisibility() ?: 'public');
     $descriptor->setFinal($reflector->isFinal());
     $descriptor->setAbstract($reflector->isAbstract());
     $descriptor->setStatic($reflector->isStatic());
     $descriptor->setLine($reflector->getLinenumber());
 }