| 1 | <?php |
||
| 8 | class NumberFormatter extends AbstractFormatter |
||
| 9 | { |
||
| 10 | protected $decimals; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * NumberFormatter constructor. |
||
| 14 | * |
||
| 15 | * @param null|FormatterInterface $formatter |
||
| 16 | * @param null|int $decimals |
||
| 17 | */ |
||
| 18 | 3 | public function __construct($formatter = null, $decimals = null) |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @param null|int $decimals |
||
| 27 | * |
||
| 28 | * @return NumberFormatter |
||
| 29 | */ |
||
| 30 | 3 | public function setDecimals($decimals) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @return null|int |
||
| 39 | */ |
||
| 40 | 3 | public function getDecimals() |
|
| 44 | |||
| 45 | 3 | protected function getFormattedValue($value) |
|
| 55 | } |
||
| 56 |