firefly-iii/app/Helpers/Csv/Converter/Amount.php

27 lines
415 B
PHP
Raw Normal View History

2015-07-04 23:18:02 -05:00
<?php
namespace FireflyIII\Helpers\Csv\Converter;
use FireflyIII\Models\Account;
/**
* Class Amount
*
* @package FireflyIII\Helpers\Csv\Converter
*/
class Amount extends BasicConverter implements ConverterInterface
{
/**
* @return Account|null
*/
public function convert()
{
if (is_numeric($this->value)) {
return $this->value;
}
return 0;
}
2015-07-09 14:26:40 -05:00
}