| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class NumberUtil |
||
| 15 | { |
||
| 16 | // tome et volume en romain |
||
| 17 | const ROMAN_GLYPH |
||
| 18 | = [ |
||
| 19 | 1000 => 'M', |
||
| 20 | 900 => 'CM', |
||
| 21 | 500 => 'D', |
||
| 22 | 400 => 'CD', |
||
| 23 | 100 => 'C', |
||
| 24 | 90 => 'XC', |
||
| 25 | 50 => 'L', |
||
| 26 | 40 => 'XL', |
||
| 27 | 10 => 'X', |
||
| 28 | 9 => 'IX', |
||
| 29 | 5 => 'V', |
||
| 30 | 4 => 'IV', |
||
| 31 | 1 => 'I', |
||
| 32 | ]; |
||
| 33 | |||
| 34 | public static function arab2roman(int $number): ?string |
||
| 51 |