| Total Complexity | 5 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Coverage | 72.72% |
| 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 | * @deprecated use ByTIC\Money\Money::currency |
||
| 27 | 2 | */ |
|
| 28 | public static function create($value, $currency = null) |
||
| 29 | 2 | { |
|
| 30 | 2 | $currency = \ByTIC\Money\Money::currency($currency); |
|
| 31 | return \ByTIC\Money\Money::parseByDecimal($value, $currency); |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param $code |
||
| 36 | * @return Currency |
||
| 37 | 2 | * @deprecated use ByTIC\Money\Money::currency |
|
| 38 | */ |
||
| 39 | 2 | public static function currency($code = null) |
|
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return string |
||
| 46 | 2 | * @deprecated use ByTIC\Money\Money::currencyDefault |
|
| 47 | */ |
||
| 48 | 2 | public static function currencyDefault() |
|
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Get currencies. |
||
| 55 | * |
||
| 56 | * @return \Money\Currencies |
||
| 57 | * @deprecated use ByTIC\Money\Money::getCurrencies |
||
| 58 | */ |
||
| 59 | public static function getCurrencies() |
||
| 62 | } |
||
| 63 | } |