2015-05-16 07:51:23 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace FireflyIII\Helpers\Collection;
|
|
|
|
|
|
|
|
use FireflyIII\Models\Account as AccountModel;
|
|
|
|
|
|
|
|
/**
|
2015-05-16 12:08:54 -05:00
|
|
|
* @codeCoverageIgnore
|
|
|
|
*
|
2015-05-16 07:51:23 -05:00
|
|
|
* Class BalanceEntry
|
|
|
|
*
|
|
|
|
* @package FireflyIII\Helpers\Collection
|
|
|
|
*/
|
|
|
|
class BalanceEntry
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
/** @var AccountModel */
|
|
|
|
protected $account;
|
|
|
|
/** @var float */
|
2015-05-17 05:49:09 -05:00
|
|
|
protected $left = 0.0;
|
2015-05-20 12:55:53 -05:00
|
|
|
/** @var float */
|
|
|
|
protected $spent = 0.0;
|
2015-05-16 07:51:23 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return AccountModel
|
|
|
|
*/
|
|
|
|
public function getAccount()
|
|
|
|
{
|
|
|
|
return $this->account;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param AccountModel $account
|
|
|
|
*/
|
|
|
|
public function setAccount($account)
|
|
|
|
{
|
|
|
|
$this->account = $account;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return float
|
|
|
|
*/
|
2015-05-20 12:55:53 -05:00
|
|
|
public function getLeft()
|
2015-05-16 07:51:23 -05:00
|
|
|
{
|
2015-05-20 12:55:53 -05:00
|
|
|
return $this->left;
|
2015-05-16 07:51:23 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2015-05-20 12:55:53 -05:00
|
|
|
* @param float $left
|
2015-05-16 07:51:23 -05:00
|
|
|
*/
|
2015-05-20 12:55:53 -05:00
|
|
|
public function setLeft($left)
|
2015-05-16 07:51:23 -05:00
|
|
|
{
|
2015-05-20 12:55:53 -05:00
|
|
|
$this->left = $left;
|
2015-05-16 07:51:23 -05:00
|
|
|
}
|
|
|
|
|
2015-05-17 05:49:09 -05:00
|
|
|
/**
|
|
|
|
* @return float
|
|
|
|
*/
|
2015-05-20 12:55:53 -05:00
|
|
|
public function getSpent()
|
2015-05-17 05:49:09 -05:00
|
|
|
{
|
2015-05-20 12:55:53 -05:00
|
|
|
return $this->spent;
|
2015-05-17 05:49:09 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2015-05-20 12:55:53 -05:00
|
|
|
* @param float $spent
|
2015-05-17 05:49:09 -05:00
|
|
|
*/
|
2015-05-20 12:55:53 -05:00
|
|
|
public function setSpent($spent)
|
2015-05-17 05:49:09 -05:00
|
|
|
{
|
2015-05-20 12:55:53 -05:00
|
|
|
$this->spent = $spent;
|
2015-05-17 05:49:09 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-05-20 12:56:14 -05:00
|
|
|
}
|