2016-02-04 10:16:16 -06:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* BasicCollector.php
|
2016-04-01 09:44:46 -05:00
|
|
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
2016-02-04 10:16:16 -06:00
|
|
|
*
|
2016-10-04 23:52:15 -05:00
|
|
|
* 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.
|
2016-02-04 10:16:16 -06:00
|
|
|
*/
|
|
|
|
|
2017-04-09 00:44:22 -05:00
|
|
|
declare(strict_types=1);
|
2016-05-20 05:27:31 -05:00
|
|
|
|
2016-02-04 10:16:16 -06:00
|
|
|
namespace FireflyIII\Export\Collector;
|
|
|
|
|
|
|
|
|
|
|
|
use FireflyIII\Models\ExportJob;
|
|
|
|
use Illuminate\Support\Collection;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class BasicCollector
|
|
|
|
*
|
|
|
|
* @package FireflyIII\Export\Collector
|
|
|
|
*/
|
|
|
|
class BasicCollector
|
|
|
|
{
|
|
|
|
/** @var ExportJob */
|
|
|
|
protected $job;
|
2016-03-14 14:53:56 -05:00
|
|
|
/** @var Collection */
|
2016-10-23 02:44:14 -05:00
|
|
|
private $entries;
|
2016-02-04 10:16:16 -06:00
|
|
|
|
|
|
|
/**
|
|
|
|
* BasicCollector constructor.
|
|
|
|
*/
|
2017-02-05 08:58:55 -06:00
|
|
|
public function __construct()
|
2016-02-04 10:16:16 -06:00
|
|
|
{
|
2016-10-23 02:44:14 -05:00
|
|
|
$this->entries = new Collection;
|
2016-02-04 10:16:16 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return Collection
|
|
|
|
*/
|
2016-10-23 02:44:14 -05:00
|
|
|
public function getEntries(): Collection
|
2016-02-04 10:16:16 -06:00
|
|
|
{
|
2016-10-23 02:44:14 -05:00
|
|
|
return $this->entries;
|
2016-02-04 10:16:16 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2016-10-23 02:44:14 -05:00
|
|
|
* @param Collection $entries
|
2016-02-04 10:16:16 -06:00
|
|
|
*/
|
2016-10-23 02:44:14 -05:00
|
|
|
public function setEntries(Collection $entries)
|
2016-02-04 10:16:16 -06:00
|
|
|
{
|
2016-10-23 02:44:14 -05:00
|
|
|
$this->entries = $entries;
|
2016-02-04 10:16:16 -06:00
|
|
|
}
|
|
|
|
|
2017-02-05 08:58:55 -06:00
|
|
|
/**
|
|
|
|
* @param ExportJob $job
|
|
|
|
*/
|
|
|
|
public function setJob(ExportJob $job)
|
|
|
|
{
|
|
|
|
$this->job = $job;
|
|
|
|
}
|
|
|
|
|
2016-02-04 10:16:16 -06:00
|
|
|
|
2016-02-10 09:01:18 -06:00
|
|
|
}
|