mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-30 12:43:57 -06:00
57 lines
1018 B
PHP
57 lines
1018 B
PHP
<?php
|
|
declare(strict_types = 1);
|
|
/**
|
|
* BasicExporter.php
|
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
|
*
|
|
* This software may be modified and distributed under the terms
|
|
* of the MIT license. See the LICENSE file for details.
|
|
*/
|
|
|
|
namespace FireflyIII\Export\Exporter;
|
|
|
|
|
|
use FireflyIII\Models\ExportJob;
|
|
use Illuminate\Support\Collection;
|
|
|
|
/**
|
|
* Class BasicExporter
|
|
*
|
|
* @package FireflyIII\Export\Exporter
|
|
*/
|
|
class BasicExporter
|
|
{
|
|
/** @var ExportJob */
|
|
protected $job;
|
|
private $entries;
|
|
|
|
/**
|
|
* BasicExporter constructor.
|
|
*
|
|
* @param ExportJob $job
|
|
*/
|
|
public function __construct(ExportJob $job)
|
|
{
|
|
$this->entries = new Collection;
|
|
$this->job = $job;
|
|
}
|
|
|
|
/**
|
|
* @return Collection
|
|
*/
|
|
public function getEntries(): Collection
|
|
{
|
|
return $this->entries;
|
|
}
|
|
|
|
/**
|
|
* @param Collection $entries
|
|
*/
|
|
public function setEntries(Collection $entries)
|
|
{
|
|
$this->entries = $entries;
|
|
}
|
|
|
|
|
|
}
|