mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			47 lines
		
	
	
		
			707 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			707 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace FireflyIII\Helpers\Collection;
 | |
| 
 | |
| use FireflyIII\Models\Account as AccountModel;
 | |
| use Illuminate\Support\Collection;
 | |
| 
 | |
| /**
 | |
|  * @codeCoverageIgnore
 | |
|  *
 | |
|  * Class BalanceHeader
 | |
|  *
 | |
|  * @package FireflyIII\Helpers\Collection
 | |
|  */
 | |
| class BalanceHeader
 | |
| {
 | |
| 
 | |
|     /** @var  Collection */
 | |
|     protected $accounts;
 | |
| 
 | |
|     /**
 | |
|      *
 | |
|      */
 | |
|     public function __construct()
 | |
|     {
 | |
|         $this->accounts = new Collection;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @param AccountModel $account
 | |
|      */
 | |
|     public function addAccount(AccountModel $account)
 | |
|     {
 | |
|         $this->accounts->push($account);
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @return Collection
 | |
|      */
 | |
|     public function getAccounts()
 | |
|     {
 | |
|         return $this->accounts;
 | |
|     }
 | |
| 
 | |
| 
 | |
| }
 |