mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-10 12:24:50 +00:00
Lots of import related code.
This commit is contained in:
41
app/Import/ImportEntry.php
Normal file
41
app/Import/ImportEntry.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/**
|
||||
* ImportEntry.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);
|
||||
|
||||
namespace FireflyIII\Import;
|
||||
|
||||
use FireflyIII\Exceptions\FireflyException;
|
||||
use FireflyIII\Models\Account;
|
||||
|
||||
/**
|
||||
* Class ImportEntry
|
||||
*
|
||||
* @package FireflyIII\Import
|
||||
*/
|
||||
class ImportEntry
|
||||
{
|
||||
/** @var Account */
|
||||
public $assetAccount;
|
||||
|
||||
/**
|
||||
* @param $role
|
||||
* @param $value
|
||||
*
|
||||
* @throws FireflyException
|
||||
*/
|
||||
public function fromRawValue($role, $value)
|
||||
{
|
||||
switch ($role) {
|
||||
default:
|
||||
throw new FireflyException('Cannot handle role of type "' . $role . '".');
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user