| 1 | <?php |
||
| 19 | class NumberFormatConverter implements ConverterInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var int |
||
| 23 | */ |
||
| 24 | protected $decimals; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | protected $decimalPoint; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | protected $thousandsSeparator; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * NumberFormatConverter constructor. |
||
| 38 | * |
||
| 39 | * @param int $decimals |
||
| 40 | * @param string $decimalPoint |
||
| 41 | * @param string $thousandsSeparator |
||
| 42 | * |
||
| 43 | * @codeCoverageIgnore |
||
| 44 | */ |
||
| 45 | public function __construct($decimals = 0, $decimalPoint = '.', $thousandsSeparator = ',') |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param mixed $item |
||
| 54 | * |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | 2 | public function convert($item) |
|
| 61 | } |
||
| 62 |