firefly-iii/app/Export/Exporter/BasicExporter.php

57 lines
1018 B
PHP
Raw Normal View History

2016-02-04 10:16:16 -06:00
<?php
2016-02-05 05:08:25 -06:00
declare(strict_types = 1);
2016-02-04 10:16:16 -06:00
/**
* BasicExporter.php
2016-04-01 09:44:46 -05:00
* Copyright (C) 2016 thegrumpydictator@gmail.com
2016-02-04 10:16:16 -06:00
*
* 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;
2016-03-19 10:51:52 -05:00
private $entries;
2016-02-04 10:16:16 -06:00
/**
* BasicExporter constructor.
2016-02-05 08:41:40 -06:00
*
* @param ExportJob $job
2016-02-04 10:16:16 -06:00
*/
public function __construct(ExportJob $job)
{
$this->entries = new Collection;
$this->job = $job;
2016-02-04 10:16:16 -06:00
}
/**
* @return Collection
*/
2016-04-06 09:37:28 -05:00
public function getEntries(): Collection
2016-02-04 10:16:16 -06:00
{
return $this->entries;
}
/**
* @param Collection $entries
*/
public function setEntries(Collection $entries)
{
$this->entries = $entries;
}
2016-02-10 09:01:18 -06:00
}