. */ declare(strict_types=1); namespace FireflyIII\Helpers\Collection; use FireflyIII\Models\Account as AccountModel; use Illuminate\Support\Collection; /** * Class BalanceHeader. * * @codeCoverageIgnore */ class BalanceHeader { /** @var Collection The accounts. */ protected $accounts; /** * BalanceHeader constructor. */ public function __construct() { $this->accounts = new Collection; } /** * Add an account. * * @param AccountModel $account */ public function addAccount(AccountModel $account): void { $this->accounts->push($account); } /** * Get them all. * * @return Collection */ public function getAccounts(): Collection { return $this->accounts; } }