mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-09 15:43:19 -06:00
58 lines
826 B
PHP
58 lines
826 B
PHP
<?php
|
|
|
|
namespace FireflyIII\Helpers\Collection;
|
|
|
|
use FireflyIII\Models\Account as AccountModel;
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*
|
|
* Class BalanceEntry
|
|
*
|
|
* @package FireflyIII\Helpers\Collection
|
|
*/
|
|
class BalanceEntry
|
|
{
|
|
|
|
|
|
/** @var AccountModel */
|
|
protected $account;
|
|
|
|
/** @var float */
|
|
protected $spent = 0.0;
|
|
|
|
|
|
/**
|
|
* @return AccountModel
|
|
*/
|
|
public function getAccount()
|
|
{
|
|
return $this->account;
|
|
}
|
|
|
|
/**
|
|
* @param AccountModel $account
|
|
*/
|
|
public function setAccount($account)
|
|
{
|
|
$this->account = $account;
|
|
}
|
|
|
|
/**
|
|
* @return float
|
|
*/
|
|
public function getSpent()
|
|
{
|
|
return $this->spent;
|
|
}
|
|
|
|
/**
|
|
* @param float $spent
|
|
*/
|
|
public function setSpent($spent)
|
|
{
|
|
$this->spent = $spent;
|
|
}
|
|
|
|
|
|
} |