mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-27 11:20:39 -06:00
61 lines
1.1 KiB
PHP
61 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* BasicCollector.php
|
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
|
*
|
|
* This software may be modified and distributed under the terms of the
|
|
* Creative Commons Attribution-ShareAlike 4.0 International License.
|
|
*
|
|
* See the LICENSE file for details.
|
|
*/
|
|
|
|
declare(strict_types = 1);
|
|
|
|
namespace FireflyIII\Export\Collector;
|
|
|
|
|
|
use FireflyIII\Models\ExportJob;
|
|
use Illuminate\Support\Collection;
|
|
|
|
/**
|
|
* Class BasicCollector
|
|
*
|
|
* @package FireflyIII\Export\Collector
|
|
*/
|
|
class BasicCollector
|
|
{
|
|
/** @var ExportJob */
|
|
protected $job;
|
|
/** @var Collection */
|
|
private $entries;
|
|
|
|
/**
|
|
* BasicCollector 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;
|
|
}
|
|
|
|
|
|
}
|