src/phpDocumentor/Descriptor/Builder/Reflector/Tags/TypeCollectionAssembler.php
protected function convertToArrayDescriptor($descriptor)
    {
        $arrayDescriptor = new CollectionDescriptor('array');
        $arrayDescriptor->setTypes(array($descriptor));
        $arrayDescriptor->setKeyTypes(array('mixed'));

        return $arrayDescriptor;
    }
protected function convertToArrayDescriptor($descriptor)
    {
        $arrayDescriptor = new CollectionDescriptor('array');
        $arrayDescriptor->setTypes(array($descriptor));
        $arrayDescriptor->setKeyTypes(array('mixed'));

        return $arrayDescriptor;
    }
protected function convertToArrayDescriptor ( $ descriptor ) { $ arrayDescriptor = new CollectionDescriptor ( 'array' ) ; $ arrayDescriptor -> setTypes ( array ( $ descriptor ) ) ; $ arrayDescriptor -> setKeyTypes ( array ( 'mixed' ) ) ; return $ arrayDescriptor ; }
Wraps the given Descriptor inside a Collection Descriptor of type array and returns that.

@param DescriptorAbstract $descriptor

@return CollectionDescriptor
Wraps the given Descriptor inside a Collection Descriptor of type array and returns that .