Files
firefly-iii/app/Export/Entry/EntryAccount.php

48 lines
1009 B
PHP
Raw Normal View History

2016-04-26 20:49:22 +02:00
<?php
/**
* EntryAccount.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
declare(strict_types = 1);
2016-04-26 20:49:22 +02:00
namespace FireflyIII\Export\Entry;
use FireflyIII\Models\Account;
/**
* Class EntryAccount
*
* @package FireflyIII\Export\Entry
*/
class EntryAccount
{
2016-04-26 21:40:15 +02:00
/** @var int */
public $accountId;
2016-04-26 20:49:22 +02:00
/** @var string */
public $iban;
/** @var string */
public $name;
2016-05-15 17:46:53 +02:00
/** @var string */
2016-04-26 20:49:22 +02:00
public $number;
/** @var string */
public $type;
/**
* EntryAccount constructor.
*
* @param Account $account
*/
public function __construct(Account $account)
{
2016-04-26 21:40:15 +02:00
$this->accountId = $account->id;
$this->name = $account->name;
$this->iban = $account->iban;
$this->type = $account->accountType->type;
$this->number = $account->getMeta('accountNumber');
2016-04-26 20:49:22 +02:00
}
2016-08-12 15:10:03 +02:00
}