mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-09 07:33:06 -06:00
27 lines
415 B
PHP
27 lines
415 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;
|
|
}
|
|
}
|