mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-09 23:53:12 -06:00
26 lines
414 B
PHP
26 lines
414 B
PHP
|
<?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;
|
||
|
}
|
||
|
}
|