Changed a lot of parameters.

This commit is contained in:
James Cole
2016-02-05 09:25:15 +01:00
parent 554640c345
commit 78bcd3e1bb
64 changed files with 539 additions and 572 deletions

View File

@@ -46,7 +46,7 @@ class BasicCollector
/**
* @param Collection $files
*/
public function setFiles($files)
public function setFiles(Collection $files)
{
$this->files = $files;
}

View File

@@ -8,6 +8,7 @@
*/
namespace FireflyIII\Export\Collector;
use Illuminate\Support\Collection;
/**
* Interface CollectorInterface
@@ -16,6 +17,20 @@ namespace FireflyIII\Export\Collector;
*/
interface CollectorInterface
{
/**
* @return bool
*/
public function run();
/**
* @return Collection
*/
public function getFiles();
/**
* @param Collection $files
*
*/
public function setFiles(Collection $files);
}

View File

@@ -31,6 +31,9 @@ class UploadCollector extends BasicCollector implements CollectorInterface
parent::__construct($job);
}
/**
*
*/
public function run()
{
// grab upload directory.