Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| BasketTotalFormattingForIso4217NotImplementedException | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| format | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Alistaircol\Hta\Domain\Basket\Exceptions; |
| 6 | |
| 7 | use BadMethodCallException; |
| 8 | |
| 9 | class BasketTotalFormattingForIso4217NotImplementedException extends BadMethodCallException |
| 10 | { |
| 11 | public static function format(int $total, string $code): self |
| 12 | { |
| 13 | throw new self("The formatting for ISO-4217 code $code has not been implemented."); |
| 14 | } |
| 15 | } |