mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	Wrote export tests.
This commit is contained in:
		| @@ -30,7 +30,7 @@ use ZipArchive; | ||||
|  * | ||||
|  * @package FireflyIII\Export | ||||
|  */ | ||||
| class Processor | ||||
| class Processor implements ProcessorInterface | ||||
| { | ||||
|  | ||||
|     /** @var Collection */ | ||||
|   | ||||
							
								
								
									
										67
									
								
								app/Export/ProcessorInterface.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										67
									
								
								app/Export/ProcessorInterface.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,67 @@ | ||||
| <?php | ||||
| /** | ||||
|  * ProcessorInterface.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; | ||||
|  | ||||
| use Illuminate\Support\Collection; | ||||
|  | ||||
| /** | ||||
|  * Interface ProcessorInterface | ||||
|  * | ||||
|  * @package FireflyIII\Export | ||||
|  */ | ||||
| interface ProcessorInterface | ||||
| { | ||||
|  | ||||
|     /** | ||||
|      * Processor constructor. | ||||
|      * | ||||
|      * @param array $settings | ||||
|      */ | ||||
|     public function __construct(array $settings); | ||||
|  | ||||
|     /** | ||||
|      * @return bool | ||||
|      */ | ||||
|     public function collectAttachments(): bool; | ||||
|  | ||||
|     /** | ||||
|      * @return bool | ||||
|      */ | ||||
|     public function collectJournals(): bool; | ||||
|  | ||||
|     /** | ||||
|      * @return bool | ||||
|      */ | ||||
|     public function collectOldUploads(): bool; | ||||
|  | ||||
|     /** | ||||
|      * @return bool | ||||
|      */ | ||||
|     public function convertJournals(): bool; | ||||
|  | ||||
|     /** | ||||
|      * @return bool | ||||
|      */ | ||||
|     public function createZipFile(): bool; | ||||
|  | ||||
|     /** | ||||
|      * @return bool | ||||
|      */ | ||||
|     public function exportJournals(): bool; | ||||
|  | ||||
|     /** | ||||
|      * @return Collection | ||||
|      */ | ||||
|     public function getFiles(): Collection; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user