mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-24 04:41:01 +00:00
33 lines
620 B
PHP
33 lines
620 B
PHP
<?php
|
|
/**
|
|
* Amount.php
|
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
|
*
|
|
* This software may be modified and distributed under the terms
|
|
* of the MIT license. See the LICENSE file for details.
|
|
*/
|
|
|
|
declare(strict_types = 1);
|
|
namespace FireflyIII\Helpers\Csv\Converter;
|
|
|
|
/**
|
|
* Class Amount
|
|
*
|
|
* @package FireflyIII\Helpers\Csv\Converter
|
|
*/
|
|
class Amount extends BasicConverter implements ConverterInterface
|
|
{
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function convert(): string
|
|
{
|
|
if (is_numeric($this->value)) {
|
|
return strval($this->value);
|
|
}
|
|
|
|
return '0';
|
|
}
|
|
}
|