mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 18:54:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			108 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			108 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| /**
 | |
|  * Account.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\Helpers\Collection;
 | |
| 
 | |
| use Illuminate\Support\Collection;
 | |
| 
 | |
| /**
 | |
|  * Class Account
 | |
|  *
 | |
|  * @package FireflyIII\Helpers\Collection
 | |
|  */
 | |
| class Account
 | |
| {
 | |
| 
 | |
|     /** @var Collection */
 | |
|     protected $accounts;
 | |
|     /** @var string */
 | |
|     protected $difference = '';
 | |
|     /** @var string */
 | |
|     protected $end = '';
 | |
|     /** @var string */
 | |
|     protected $start = '';
 | |
| 
 | |
|     /**
 | |
|      * Account constructor.
 | |
|      */
 | |
|     public function __construct()
 | |
|     {
 | |
|         $this->accounts = new Collection;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @return Collection
 | |
|      */
 | |
|     public function getAccounts(): Collection
 | |
|     {
 | |
|         return $this->accounts;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @param Collection $accounts
 | |
|      */
 | |
|     public function setAccounts(Collection $accounts)
 | |
|     {
 | |
|         $this->accounts = $accounts;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @return string
 | |
|      */
 | |
|     public function getDifference(): string
 | |
|     {
 | |
|         return $this->difference;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @param string $difference
 | |
|      */
 | |
|     public function setDifference(string $difference)
 | |
|     {
 | |
|         $this->difference = $difference;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @return string
 | |
|      */
 | |
|     public function getEnd(): string
 | |
|     {
 | |
|         return $this->end;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @param string $end
 | |
|      */
 | |
|     public function setEnd(string $end)
 | |
|     {
 | |
|         $this->end = $end;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @return string
 | |
|      */
 | |
|     public function getStart(): string
 | |
|     {
 | |
|         return $this->start;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @param string $start
 | |
|      */
 | |
|     public function setStart(string $start)
 | |
|     {
 | |
|         $this->start = $start;
 | |
|     }
 | |
| 
 | |
| 
 | |
| }
 |