mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-13 00:45:55 -06:00
25 lines
381 B
PHP
25 lines
381 B
PHP
<?php
|
|
|
|
namespace FireflyIII\Helpers\Csv\Converter;
|
|
|
|
/**
|
|
* Class Amount
|
|
*
|
|
* @package FireflyIII\Helpers\Csv\Converter
|
|
*/
|
|
class Amount extends BasicConverter implements ConverterInterface
|
|
{
|
|
|
|
/**
|
|
* @return string|int
|
|
*/
|
|
public function convert()
|
|
{
|
|
if (is_numeric($this->value)) {
|
|
return $this->value;
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
}
|