mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-04 12:29:47 +00:00
32 lines
495 B
PHP
32 lines
495 B
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: sander
|
|
* Date: 05/07/15
|
|
* Time: 05:49
|
|
*/
|
|
|
|
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;
|
|
}
|
|
} |