Optimised some code.

This commit is contained in:
James Cole
2016-07-30 16:29:04 +02:00
parent 1e724712e0
commit 541d9ebdd9
7 changed files with 862 additions and 665 deletions

View File

@@ -24,6 +24,8 @@ class ImportEntry
public $amount;
/**
* @param string $role
* @param string $value
@@ -34,6 +36,8 @@ class ImportEntry
*/
public function importValue(string $role, string $value, int $certainty, $convertedValue)
{
Log::debug('Going to import', ['role' => $role, 'value' => $value, 'certainty' => $certainty]);
switch ($role) {
default:
Log::error('Import entry cannot handle object.', ['role' => $role]);
@@ -41,11 +45,12 @@ class ImportEntry
break;
case 'amount':
/*
* Easy enough.
*/
$this->setAmount($convertedValue);
return;
case 'account-id':
break;
return;
}
}