Total Complexity | 2 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class DecimalMoneyFormatter |
||
11 | { |
||
12 | use BladeDirectiveHelpers; |
||
13 | |||
14 | /** |
||
15 | * Calls the format() method on the DecimalMoneyFormatter with the given |
||
16 | * amount of ccents and currency code. |
||
17 | * |
||
18 | * @param integer $cents |
||
19 | * @param string $code |
||
20 | * @return string |
||
21 | */ |
||
22 | public static function handler(int $cents, string $code): string |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * Registers a handler for the money formatter. |
||
33 | * |
||
34 | * @param string $name |
||
35 | * @param string $code |
||
36 | * @return void |
||
37 | */ |
||
38 | public static function directive(string $name = 'decimals', string $code = 'EUR') |
||
47 |