mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			88 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			88 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace Firefly\Storage\Budget;
 | |
| use Illuminate\Queue\Jobs\Job;
 | |
| 
 | |
| /**
 | |
|  * Interface BudgetRepositoryInterface
 | |
|  *
 | |
|  * @package Firefly\Storage\Budget
 | |
|  */
 | |
| interface BudgetRepositoryInterface
 | |
| {
 | |
|     /**
 | |
|      * @param Job   $job
 | |
|      * @param array $payload
 | |
|      *
 | |
|      * @return mixed
 | |
|      */
 | |
|     public function importBudget(Job $job, array $payload);
 | |
| 
 | |
|     /**
 | |
|      * Takes a transaction/budget component and updates the transaction journal to match.
 | |
|      *
 | |
|      * @param Job   $job
 | |
|      * @param array $payload
 | |
|      *
 | |
|      * @return mixed
 | |
|      */
 | |
|     public function importUpdateTransaction(Job $job, array $payload);
 | |
| 
 | |
|     /**
 | |
|      * Takes a transfer/budget component and updates the transaction journal to match.
 | |
|      *
 | |
|      * @param Job   $job
 | |
|      * @param array $payload
 | |
|      *
 | |
|      * @return mixed
 | |
|      */
 | |
|     public function importUpdateTransfer(Job $job, array $payload);
 | |
| 
 | |
|     /**
 | |
|      * @param \Budget $budget
 | |
|      *
 | |
|      * @return mixed
 | |
|      */
 | |
|     public function destroy(\Budget $budget);
 | |
| 
 | |
|     /**
 | |
|      * @param $budgetId
 | |
|      *
 | |
|      * @return mixed
 | |
|      */
 | |
|     public function find($budgetId);
 | |
| 
 | |
| 
 | |
|     /**
 | |
|      * @param $budgetName
 | |
|      * @return mixed
 | |
|      */
 | |
|     public function findByName($budgetName);
 | |
| 
 | |
|     /**
 | |
|      * @param \User $user
 | |
|      * @return mixed
 | |
|      */
 | |
|     public function overruleUser(\User $user);
 | |
| 
 | |
|     /**
 | |
|      * @return mixed
 | |
|      */
 | |
|     public function get();
 | |
| 
 | |
|     /**
 | |
|      * @param $data
 | |
|      *
 | |
|      * @return mixed
 | |
|      */
 | |
|     public function store($data);
 | |
| 
 | |
|     /**
 | |
|      * @param \Budget $budget
 | |
|      * @param         $data
 | |
|      *
 | |
|      * @return mixed
 | |
|      */
 | |
|     public function update(\Budget $budget, $data);
 | |
| 
 | |
| } 
 |