original_string: protected function convertToArrayDescriptor($descriptor)
      {
          $arrayDescriptor = new CollectionDescriptor('array');
          $arrayDescriptor->setTypes(array($descriptor));
          $arrayDescriptor->setKeyTypes(array('mixed'));
  
          return $arrayDescriptor;
      }
code: protected function convertToArrayDescriptor($descriptor)
      {
          $arrayDescriptor = new CollectionDescriptor('array');
          $arrayDescriptor->setTypes(array($descriptor));
          $arrayDescriptor->setKeyTypes(array('mixed'));
  
          return $arrayDescriptor;
      }
code_tokens: protected function convertToArrayDescriptor ( $ descriptor ) { $ arrayDescriptor = new CollectionDescriptor ( 'array' ) ; $ arrayDescriptor -> setTypes ( array ( $ descriptor ) ) ; $ arrayDescriptor -> setKeyTypes ( array ( 'mixed' ) ) ; return $ arrayDescriptor ; }
docstring: Wraps the given Descriptor inside a Collection Descriptor of type array and returns that.
  
  @param DescriptorAbstract $descriptor
  
  @return CollectionDescriptor
docstring_tokens: Wraps the given Descriptor inside a Collection Descriptor of type array and returns that .