mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			60 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			60 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| /**
 | |
|  * BasicExporter.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\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;
 | |
|     }
 | |
| 
 | |
| 
 | |
| }
 |