mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-09 07:33:06 -06:00
25 lines
409 B
PHP
25 lines
409 B
PHP
<?php
|
|
declare(strict_types = 1);
|
|
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';
|
|
}
|
|
}
|