1 | <?php |
||
10 | class OrderConverter |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * Converts an Order object to an Array. |
||
15 | * |
||
16 | * @param Order $order |
||
17 | * |
||
18 | * @return array |
||
|
|||
19 | */ |
||
20 | public function convert(Order $order) |
||
48 | |||
49 | /** |
||
50 | * Formats a number to a format google an easily comprehend. |
||
51 | * |
||
52 | * @param $number number |
||
53 | * |
||
54 | * @return string |
||
55 | */ |
||
56 | protected function formatNumber($number) |
||
60 | } |
||
61 |
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.