Improve code quality for Export directory.

This commit is contained in:
James Cole
2018-07-06 19:05:27 +02:00
parent 52f02cb9eb
commit 57345113b5
10 changed files with 143 additions and 134 deletions

View File

@@ -33,26 +33,36 @@ use Illuminate\Support\Collection;
interface ExporterInterface
{
/**
* Get entries.
*
* @return Collection
*/
public function getEntries(): Collection;
/**
* Get file name.
*
* @return string
*/
public function getFileName(): string;
/**
* Run exporter.
*
* @return bool
*/
public function run(): bool;
/**
* Set entries.
*
* @param Collection $entries
*/
public function setEntries(Collection $entries);
/**
* Set job.
*
* @param ExportJob $job
*/
public function setJob(ExportJob $job);