firefly-iii/app/Helpers/Collection/BalanceEntry.php
2017-11-15 12:25:49 +01:00

87 lines
1.8 KiB
PHP

<?php
/**
* BalanceEntry.php
* Copyright (c) 2017 thegrumpydictator@gmail.com
*
* This file is part of Firefly III.
*
* Firefly III is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Firefly III is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace FireflyIII\Helpers\Collection;
use FireflyIII\Models\Account as AccountModel;
/**
* Class BalanceEntry.
*/
class BalanceEntry
{
/** @var AccountModel */
protected $account;
/** @var string */
protected $left = '0';
/** @var string */
protected $spent = '0';
/**
* @return AccountModel
*/
public function getAccount(): AccountModel
{
return $this->account;
}
/**
* @param AccountModel $account
*/
public function setAccount(AccountModel $account)
{
$this->account = $account;
}
/**
* @return string
*/
public function getLeft(): string
{
return $this->left;
}
/**
* @param string $left
*/
public function setLeft(string $left)
{
$this->left = $left;
}
/**
* @return string
*/
public function getSpent(): string
{
return $this->spent;
}
/**
* @param string $spent
*/
public function setSpent(string $spent)
{
$this->spent = $spent;
}
}