Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
11 | abstract class AbstractBuilder |
||
12 | { |
||
13 | /** |
||
14 | * @param float $amount |
||
15 | * @return int |
||
16 | */ |
||
17 | protected function convertToCent(float $amount): int |
||
18 | { |
||
19 | return (int)($amount * 100); |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @param string $date |
||
24 | * @return string |
||
25 | * @throws \Exception |
||
26 | */ |
||
27 | protected function formatDateTime(string $date): string |
||
30 | } |
||
31 | } |
||
32 |