public function get($id)
    {
        $document = $this->getFileCollection()->findOne(['_id' => $id]);
        return empty($document) ? null : $this->createDownload($document);
    }
public function get($id)
    {
        $document = $this->getFileCollection()->findOne(['_id' => $id]);
        return empty($document) ? null : $this->createDownload($document);
    }
public function get ( $ id ) { $ document = $ this -> getFileCollection ( ) -> findOne ( [ '_id' => $ id ] ) ; return empty ( $ document ) ? null : $ this -> createDownload ( $ document ) ; }
Retrieves the file with given _id.
@param mixed $id _id of the file to find.
@return Download|null found file, or null if file does not exist
@throws Exception on failure.
Retrieves the file with given _id .