public function createDocument($document, $uid, $indexName = '', $indexType = '')
    {
        return new DocumentReference($document, $uid, $this->indexNamePrefix . $indexName, $indexType);
    }
public function createDocument($document, $uid, $indexName = '', $indexType = '')
    {
        return new DocumentReference($document, $uid, $this->indexNamePrefix . $indexName, $indexType);
    }
public function createDocument ( $ document , $ uid , $ indexName = '' , $ indexType = '' ) { return new DocumentReference ( $ document , $ uid , $ this -> indexNamePrefix . $ indexName , $ indexType ) ; }
Create a document

@param string $uid
@param mixed $document
@param string $indexName
@param string $indexType

@return mixed
Create a document