ING specific amount modifier. See issue #210

This commit is contained in:
James Cole
2016-03-07 20:00:16 +01:00
parent 6ad10f1772
commit e472e105f2
3 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<?php
/**
* INGDebetCredit.php
* Copyright (C) 2016 Sander Dorigo
*
* 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\Helpers\Csv\Converter;
/**
* Class INGDebetCredit
*
* @package FireflyIII\Helpers\Csv\Converter
*/
class INGDebetCredit extends BasicConverter implements ConverterInterface
{
/**
* @return int
*/
public function convert()
{
if ($this->value === 'Af') {
return -1;
}
return 1;
}
}