firefly-iii/app/Helpers/Collection/Balance.php

65 lines
1.1 KiB
PHP
Raw Normal View History

2015-05-16 07:51:23 -05:00
<?php
2016-02-05 05:08:25 -06:00
declare(strict_types = 1);
2015-05-16 07:51:23 -05:00
namespace FireflyIII\Helpers\Collection;
2015-05-20 12:55:53 -05:00
2015-05-16 07:51:23 -05:00
use Illuminate\Support\Collection;
/**
2015-05-16 12:08:54 -05:00
* @codeCoverageIgnore
*
2015-05-16 07:51:23 -05:00
* Class Balance
*
* @package FireflyIII\Helpers\Collection
*/
class Balance
{
/** @var BalanceHeader */
protected $balanceHeader;
/** @var Collection */
protected $balanceLines;
/**
*
*/
public function __construct()
{
$this->balanceLines = new Collection;
}
/**
* @param BalanceLine $line
*/
public function addBalanceLine(BalanceLine $line)
{
$this->balanceLines->push($line);
}
/**
* @return BalanceHeader
*/
public function getBalanceHeader()
{
return $this->balanceHeader;
}
/**
* @param BalanceHeader $balanceHeader
*/
2016-02-05 02:25:15 -06:00
public function setBalanceHeader(BalanceHeader $balanceHeader)
2015-05-16 07:51:23 -05:00
{
$this->balanceHeader = $balanceHeader;
}
2015-05-16 08:43:58 -05:00
/**
* @return \Illuminate\Support\Collection
*/
public function getBalanceLines()
{
return $this->balanceLines;
}
2015-05-20 12:56:14 -05:00
}