1 | <?php |
||
8 | class OrderConverter |
||
9 | { |
||
10 | /** |
||
11 | * Converts an Order object to an Array. |
||
12 | * |
||
13 | * @param Order $order |
||
14 | * |
||
15 | * @return array |
||
|
|||
16 | */ |
||
17 | public function convert(Order $order) |
||
45 | |||
46 | /** |
||
47 | * Formats a number to a format google an easily comprehend. |
||
48 | * |
||
49 | * @param $number number |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | protected function formatNumber($number) |
||
57 | } |
||
58 |
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.