Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
62 | 1 | public function getRoundingRules() |
|
63 | { |
||
64 | return [ |
||
65 | 1 | static::NONE => 'No rounding performed', |
|
66 | 1 | static::POUND => 'Round to the nearest pound', |
|
67 | 1 | static::POUND_UP => 'Round to the next whole pound', |
|
68 | 1 | static::POUND_DOWN => 'Round to the previous whole pound', |
|
69 | 1 | static::FIFTY => 'Round to the nearest 50p or whole pound', |
|
70 | 1 | static::FIFTY_UP => 'Round to the next 50p or whole pound', |
|
71 | 1 | static::FIFTY_DOWN => 'Round to the previous 50p or whole pound', |
|
72 | 1 | ]; |
|
73 | } |
||
74 | } |
||
75 |