Total Complexity | 5 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 75% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class NumberNormalizer extends AbstractNormalizer |
||
9 | { |
||
10 | /** @var int|null */ |
||
11 | private $decimals; |
||
12 | |||
13 | 1 | public function setDecimals(?int $decimals = null): self |
|
14 | { |
||
15 | 1 | $this->decimals = $decimals; |
|
16 | |||
17 | 1 | return $this; |
|
18 | } |
||
19 | |||
20 | public function getDecimals(): ?int |
||
21 | { |
||
22 | return $this->decimals; |
||
23 | } |
||
24 | |||
25 | 6 | protected function getNormalizedValue(string $value) |
|
38 | } |
||
39 | } |
||
40 |