Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
BasketTotalFormattingForIso4217NotImplementedException
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 format
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Alistaircol\Hta\Domain\Basket\Exceptions;
6
7use BadMethodCallException;
8
9class 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}