public function createDownload($document) { $config = ['collection' => $this, 'document' => $document]; return new Download($config); }