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

45 lines
980 B
PHP
Raw Normal View History

2016-04-26 13:49:22 -05: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.
*/
namespace FireflyIII\Export\Entry;
use FireflyIII\Models\Account;
/**
* Class EntryAccount
*
* @package FireflyIII\Export\Entry
*/
class EntryAccount
{
2016-04-26 14:40:15 -05:00
/** @var int */
public $accountId;
2016-04-26 13:49:22 -05:00
/** @var string */
public $iban;
/** @var string */
public $name;
2016-05-15 10:46:53 -05:00
/** @var string */
2016-04-26 13:49:22 -05:00
public $number;
/** @var string */
public $type;
/**
* EntryAccount constructor.
*
* @param Account $account
*/
public function __construct(Account $account)
{
2016-04-26 14:40:15 -05: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 13:49:22 -05:00
}
}