1 | <?php |
||
20 | class NumberFormatConverter implements ConverterInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var int |
||
24 | */ |
||
25 | protected $decimals; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $decimalPoint; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $thousandsSeparator; |
||
36 | |||
37 | /** |
||
38 | * NumberFormatConverter constructor. |
||
39 | * |
||
40 | * @param int $decimals |
||
41 | * @param string $decimalPoint |
||
42 | * @param string $thousandsSeparator |
||
43 | * |
||
44 | * @codeCoverageIgnore |
||
45 | */ |
||
46 | public function __construct($decimals = 0, $decimalPoint = '.', $thousandsSeparator = ',') |
||
52 | |||
53 | /** |
||
54 | * @param mixed $item |
||
55 | * |
||
56 | * @return mixed |
||
|
|||
57 | */ |
||
58 | 2 | public function convert($item) |
|
62 | } |
||
63 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.