. */ declare(strict_types=1); namespace FireflyIII\Export\Collector; use FireflyIII\Models\ExportJob; use FireflyIII\User; use Illuminate\Support\Collection; /** * Class BasicCollector. */ class BasicCollector { /** @var ExportJob */ protected $job; /** @var User */ protected $user; /** @var Collection */ private $entries; /** * BasicCollector constructor. */ public function __construct() { $this->entries = new Collection; } /** * @return Collection */ public function getEntries(): Collection { return $this->entries; } /** * @param Collection $entries */ public function setEntries(Collection $entries) { $this->entries = $entries; } /** * @param ExportJob $job */ public function setJob(ExportJob $job) { $this->job = $job; $this->user = $job->user; } /** * @param User $user */ public function setUser(User $user) { $this->user = $user; } }