public function getHead($collection, $documentId, $revision = null, $ifMatch = null)
    {
        return $this->head(Urls::URL_DOCUMENT, $collection, $documentId, $revision, $ifMatch);
    }
public function getHead($collection, $documentId, $revision = null, $ifMatch = null)
    {
        return $this->head(Urls::URL_DOCUMENT, $collection, $documentId, $revision, $ifMatch);
    }
public function getHead ( $ collection , $ documentId , $ revision = null , $ ifMatch = null ) { return $ this -> head ( Urls :: URL_DOCUMENT , $ collection , $ documentId , $ revision , $ ifMatch ) ; }
Gets information about a single documents from a collection

This will throw if the document cannot be fetched from the server


@throws Exception

@param string  $collection - collection id as a string or number.
@param mixed   $documentId - document identifier.
@param boolean $ifMatch    -  boolean if given revision should match or not.
@param string  $revision   - The document is returned if it matches/not matches revision.

@return array - an array containing the complete header including the key httpCode.
Gets information about a single documents from a collection