Total Complexity | 5 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class Money |
||
12 | { |
||
13 | /** |
||
14 | * @param $value |
||
15 | * @param null $currency |
||
|
|||
16 | */ |
||
17 | public static function fromFloat($value, $currency = null) |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @param $value |
||
25 | * @param null $currency |
||
26 | */ |
||
27 | public static function create($value, $currency = null) |
||
28 | { |
||
29 | $currency = static::currency($currency); |
||
30 | return new \Money\Money($value, $currency); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @param $code |
||
35 | * @return Currency |
||
36 | */ |
||
37 | public static function currency($code = null) |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @return string |
||
45 | */ |
||
46 | public static function currencyDefault() |
||
49 | } |
||
50 | } |