1 | <?php |
||
10 | class Numbers extends AbstractFormatterProvider |
||
11 | { |
||
12 | /** |
||
13 | * Display the value as currency |
||
14 | * |
||
15 | * @param mixed $value |
||
16 | * @return string |
||
17 | */ |
||
18 | 13 | public function asCurrency($value) |
|
36 | |||
37 | /** |
||
38 | * Displays the number as an unsigned value |
||
39 | * |
||
40 | * @param mixed $value |
||
41 | * @return float|int |
||
|
|||
42 | */ |
||
43 | 6 | public function asUnsigned($value) |
|
55 | |||
56 | /** |
||
57 | * Format the supplied value as a number |
||
58 | * |
||
59 | * @param mixed $value |
||
60 | * @return float|int |
||
61 | */ |
||
62 | 6 | public function asNumber($value) |
|
70 | |||
71 | /** |
||
72 | * Convert the supplied value into a valid number value |
||
73 | * |
||
74 | * @param mixed $value |
||
75 | * @return float |
||
76 | */ |
||
77 | 22 | private function normaliseValue($value) |
|
85 | } |
||
86 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.